Operators represent essential part of any programming language. ECMAScript standard as well supports rich set of operators. Very Few of them are demonstrated below.
/**
* There are sets of arithmetic, relational, logical, bitwise and conditional operations
* This will demonstrate few operations to be done on variables
*/
var num1=20;
var num2=10;
console.log("Addition :: "+(num1+num2));
console.log("Modulus :: "+(num1%num2));
console.log("pre increment :: "+(++num1));
console.log("Grater than :" + (num1>num2));
console.log("bitwise And" + (num1&num2));
console.log("bitwise OR" + (num1|num2));
Output
