- Variable names are case sensitive (y and Y are two different variables). It should be followed throughout the code to avoid declaring two different variables with different cases. This also avoids syntax errors when running the code in the user's browser.
- Always use camel casing while declaring variable. ex: var alienCoders = "http://www.aliencoders.org"
- Variable names must begin with a letter or the underscore character. ex: 123goAhead is wron
- = is used for assignment and + is used for addition of two numbers or two strings. ex: var x=5; var y = 2+5 ; (o/p will be y =7) var place = "New "+"Delhi"; (o/p will be "New Delhi")
We will post about operators and data types very soon!