Learning LabOperators

โž— Training โ€” Operators

📚 50 questions⏱ 15-20 min🏆 Instant feedback

โž— No (Operators) JavaScript

using No Arithmetic Operations

๐ŸŽฏ What You Will Learn in This Training

This interactive training will help you master No JavaScript No :

  • โœ… Ali type input string No
  • โœ… No=+=
  • โœ… No calculation+-*/%
  • โœ… using No comparison><===
  • โœ… operator No&&||!
  • โœ… string using +

โ“ No (Operators)?

No calculation variables .

: , calculation , comparison, .

// Example: using No
let x = 10; //
let y = x + 5; // calculation : 15
let isGreater = x > y; // comparison: false
x += 2; // : x = x + 2 (12)

โš™๏ธ 1๏ธโƒฃ No (Assignment Operators)

variable value .

let a = 5; // =
a += 3; // a = a + 3 (8)
a *= 2; // a = a * 2 (16)

๐Ÿงฎ 2๏ธโƒฃ No calculation (Arithmetic Operators)

.

let sum = 10 + 5; // : 15
let diff = 10 - 5; // : 5
let product = 10 * 5; // : 50
let quotient = 10 / 3; // : 3.333...
let remainder = 10 % 3; // : 1

โš–๏ธ 3๏ธโƒฃ No comparison (Comparison Operators)

comparison truefalse.

console.log(5 >3); // true
console.log(5 == "5"); // true
console.log(5 === "5"); // false

๐Ÿค” 4๏ธโƒฃ No (Logical Operators)

.

let a = true, b = false;
console.log(a && b); // false (AND)
console.log(a || b); // true (OR)
console.log(!a); // false (NOT)

๐Ÿ“ 5๏ธโƒฃ string

operator + data type.

let numSum = 5 + 3; // 8 ( )
let strConcat = "5" + 3; // "53" ( string )

๐Ÿ“ 6๏ธโƒฃ No (Operator Precedence)

No execution expression .

//
let result = 5 + 3 * 2; // 5 + 6 = 11

// can be used change first
let result2 = (5 + 3) * 2; // 8 * 2 = 16

first :

  • ()
  • **
  • */%
  • +-
  • >>=<<=
  • ===!==
  • && AND
  • || OR
  • =

๐ŸŽฏ Choose Training Mode