#03 || Variables Naming Rule in Javascript || Javascript learn with Us

Published: 01 November 2024
on channel: Mini Project
8
0

Assalam o Alaikum!
In this video you will learn programming | php | javascript | | Css | Html | Flutter | Adobe Photoshop | Bootstrap | JQuery | and many more....


///////////////// Variable Naming Rules ///////////////

//1 rule ) First Character must be a letter,dollar sign($) or an underscore( _ ).


//2 rule) First character cannot be a number


//3 rule) variable names cannot contain spaces


//4 rule ) Reserved Keywords cannot be used in variable name

//lets see exapmle

//if, else, switch,try, catch etc

let try="i am eligible?";

console.log(else);
..........................................

lets see example

let $aa cc="spaces are not allowed";

console.log($aa cc);
.........................................
lets see example

let firstName="hello"; //you can say this variable is in camelcase

let $name="bye bye";

let _lastname="result";


console.log(firstName,$name,_lastname);


....................................
lets see example

let 1abc="wrong condition"; //invalid due to number

console.log(1abc);


















console.log("Try programiz");


On this page of the site you can watch the video online #03 || Variables Naming Rule in Javascript || Javascript learn with Us with a duration of hours minute second in good quality, which was uploaded by the user Mini Project 01 November 2024, share the link with friends and acquaintances, this video has already been watched 8 times on youtube and it was liked by 0 viewers. Enjoy your viewing!