0

why don't use variable in number

8th Mar 2017, 7:01 AM
Raja R
Raja R - avatar
4 Answers
0
What do you mean? can you show an example of what you don't understand?
8th Mar 2017, 8:04 AM
Geoffrey L
Geoffrey L - avatar
0
var 4=100 ? why in this method don't follow
8th Mar 2017, 11:27 AM
Raja R
Raja R - avatar
0
a variable just simply never start with a number, that just has no sens 4=4 not 100. The use of a variable must be understable just by reading the name the dev gave to it. People create languages agreed a var must start with a caracter a to z or underscore. To make sure people keep a clear synthax and because the motor reading your code must know rules, not something absolutly freedom.
8th Mar 2017, 12:23 PM
Geoffrey L
Geoffrey L - avatar
0
In Javascript, variables cannot start with a number. Its one of the rules when giving a variable a name.
23rd Mar 2017, 2:53 AM
Darrion Ramdin
Darrion Ramdin - avatar