

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















// String let name = "Samer"; let lastName = 'Huwari'; // notice the single quote // Numbers let age = 33 ; let y = 123e5; // 12300000 let z = 123e- 5 ; // 0. let price = 39.95; // Object let car = {'brand' : 'Mercedes', 'year': 2019 , }; // Array let colors = ['red','blue','black']; //undefined let x;
Operator Description
Adds two numeric operands.
Subtract right operand from left operand
Multiply two numeric operands.
Increment operator. Increase operand value by one.
Decrement operator. Decrease value by one.
Operator Description
known as AND operator. It checks whether two operands are non-zero or not (0, false, undefined, null or "" are considered as zero). It returns 1 if they are non-zero; otherwise, returns 0.
known as OR operator. It checks whether any one of the two operands is non- zero or not (0, false, undefined, null or "" is considered as zero). It returns 1 if any one of them is non-zero; otherwise, returns 0.
known as NOT operator. It reverses the boolean result of the operand (or condition). !false returns true, and !true returns false.
Operator Description
Divide left operand value by right operand value and assign the result to the left operand.
Get the modulus of left operand divide by right operand and assign resulted modulus to the left operand.