Assalam o Alaikum!
In this video you will learn programming | php | javascript | | Css | Html | Flutter | Adobe Photoshop | Bootstrap | JQuery | and many more....
//Variables
//Variables are Containers for Storing Data.
//JavaScript Variables can be declared in 3 ways:
//a)Using var
//b)Using let
//c)Using const
var
var x=6;
var x=5; //again we are taking x for storing value.it will //display this variable value.
x=9;//now we are chaning x value,this time it will display new value
console.log(x);
In var ,we can use same vaiable and we can assign new value.
interview question: var are Function-scoped.
...............................................................
//Variables
//Variables are Containers for Storing Data.
//JavaScript Variables can be declared in 3 ways:
//a)Using var
//b)Using let
//c)Using const
let
let x=6; // already declared
//let x=5; //again we are taking x for storing value.it will /not display anything
//x=9;//now we are chaning x value,this time it will not //display anything
x=10;//here we can assign new value,it will show new value
console.log(x);
let ,we can not declare same vaiable and but we can assign new value.
interview question: let are Block-scoped.
..............................................
const
//Variables
//Variables are Containers for Storing Data.
//JavaScript Variables can be declared in 3 ways:
//a)Using var
//b)Using let
//c)Using const
const x=6; // already declared
//const x=5; //again we are taking x for storing value.it will //not display anything
//x=9;//now we are chaning x value,this time it will not //display anything
x=10;//we canot assign new value
console.log(x);
const ,we can not declare same vaiable and we can not assign new value .
question: const are Block-scoped.
On this page of the site you can watch the video online #02|| Variables in Javascript || Var || Let || Const || Javascript learn with Us with a duration of hours minute second in good quality, which was uploaded by the user Mini Project 30 October 2024, share the link with friends and acquaintances, this video has already been watched 10 times on youtube and it was liked by 0 viewers. Enjoy your viewing!