It's a lightweight but powerful programming language.
Values, Operators, Expressions, Keywords, what's more, Comments.
Fixed values are called literals. Variable qualities are called variables.
The most imperative guidelines for composing fixed qualities are:
Numbers are composed with or without decimals:
Strings are content, composed inside twofold or single quotes:
In a programming language, variables
In programming languages, variables are used to store data values.
x = 8;
var y = 8;
An articulation is a mix of qualities, factors, and administrators, which processes to a value.
The calculation is called an evaluation.
For precedent, 6* 18 assesses to 108:
Expressions can likewise contain variable values:
The qualities can be of different sorts, for example, numbers and strings.
For model, "John" + " " + "Doe", assesses to "John Doe":
Code after twofold cuts // or between /* and */ is treated as a comment.
Comments are overlooked, and won't be executed:
//var x = 3; I will NOT be executed</script>
Identifiers are names.
The rules for lawful names are much the equivalent in most programming languages.
Subsequent characters might be letters, digits, underscores, or dollar signs.
The factors lastName and lastname, are two diverse variables.
lastname = "Peterson";
The function getElementById is different from getElementbyID .
Also, the variable myVariable is different from MyVariable .
Unicode covers all characters, including characters such as punctuation.
var y = x * 10; div> div>