JS Variables
01
Declaring Variables
JavaScript variables can be declared with var, let, or const.
Example
let name = "John";
const age = 30;
var city = "London";
console.log(name, age, city);Output
John 30 London
JavaScript variables can be declared with var, let, or const.
let name = "John";
const age = 30;
var city = "London";
console.log(name, age, city);Output
John 30 London