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

Pubblicato il: 01 novembre 2024
sul canale di: 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");


In questa pagina del sito puoi guardare il video online #03 || Variables Naming Rule in Javascript || Javascript learn with Us della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Mini Project 01 novembre 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8 volte e gli è piaciuto 0 spettatori. Buona visione!