Identifiers can be considered as the name of a property, it can be a declared variable, function name or function argument. Note: the first character of identifiers has to be started with a letter or underscore or a dollar sign $ character, other than those characters are not allowed for ex: numbers.
//this is how you declare a variable var myNumber = 10; //alternatively, you var is optional to use, but it is TRUELY recommended that you use this one as a good common programming practice. This variable will work as well. myNumber = 10;
//number value var myNumber = 10; //string value var myName = "My Name"; //boolean value var flag = false;
//var myNumber = 0;
If you have more than one line that you want to comment, you can using the forward slash asterisk and ends the comment with the asterisk forward slash characters. See example below.
There are no comments available.