just like we follow some rule while speaking english (grammer rule), we have some rull to follow while writting javascript programming. the set of these rules is called syntax in javascript
what is a variable ?
A variable is a container that store a value this is very similar to the container used to store like chini, chiyapatti, kitnashak aushdhi, some electronic gadgate etc (treat this as a analogy)
the value of a javascript can be changed during executing of a program
var a = 7;
let a = 7;
7 = litral
a = identifier
= = assignment operator
let a = 7;
7 = litral
a = identifier
= = assignment operator
Rules for choosing varible name
1. Letters, digits, underscores & $ is allowed
2. must begin with a $,_ or a letter
3. javascript reserved word cannot be used as varible name
4. RoShay & roshay are different variable (case sensetive)
I like your technical knowledgeable blogs love and thanks for live share informatic information.
ReplyDeleteBest Fine art Institute in Delhi
Best Computer Institute in Delhi