- var CompanyName = "TechStudy";
; is the character that ends every statement.
- alert("Hello world!");
var num = 10;
Modulus Operator (%)
var num = 20 % 6;
Answer -> 2
a++; or ++a;
var a = 50; var b = a++;
50, When the plus plus(++) comes after the variable, its original value is assigned to the new variable before the incrementing variable is incremented.
var a = 50; var b = --a;
49, When the minus minus(--) comes before the variable, it is decremented before its value is assigned to the new variable.
a = a + 1;
Concatenation, e.g - var num = "10" + "5";
prompt, is the keyword that displays a box requesting user input.
==, ===, !=, !==, >, and <, >=, <=
// This is a sample single line comment.
This is a Multiline