Addition (+): Adds two numbers.
Subtraction (-): Subtracts one number from another.
Multiplication (*): Multiplies two numbers.
Division (/): Divides one number by another.
Modulus (%): Returns the remainder of a division.
Exponentiation ()**: Raises a number to the power of another.
Increment (++): Increases a number by one.
Decrement (--): Decreases a number by one.
Unary Plus (+): Converts a value to a number.
Unary Negation (-): Negates a value.
Assignment (=): Assigns a value to a variable.
Addition Assignment (+=): Adds and assigns.
Subtraction Assignment (-=): Subtracts and assigns.
Multiplication Assignment (*=): Multiplies and assigns.
Division Assignment (/=): Divides and assigns.
Modulus Assignment (%=): Performs modulus and assigns.
Exponentiation Assignment (=)**: Performs exponentiation and assigns.
Logical AND Assignment (&&=): Assigns if the left-hand side is truthy.
Logical OR Assignment (||=): Assigns if the left-hand side is falsy.
Nullish Coalescing Assignment (??=): Assigns if the left-hand side is null or undefined.
Equal (==): Checks if two values are equal (loose equality).
Not Equal (!=): Checks if two values are not equal.
Strict Equal (===): Checks if two values are equal (strict equality).
Strict Not Equal (!==): Checks if two values are not equal (strict inequality).
Greater Than (>): Checks if the left value is greater than the right.
Less Than (<): Checks if the left value is less than the right.
Greater Than or Equal (>=): Checks if the left value is greater than or equal to the right.
Less Than or Equal (<=): Checks if the left value is less than or equal to the right.
Logical AND (&&): Returns true if both operands are truthy.
Logical OR (||): Returns true if at least one operand is truthy.
Logical NOT (!): Negates the truthiness of a value.
Bitwise AND (&): Performs a bitwise AND operation.
Bitwise OR (|): Performs a bitwise OR operation.
Bitwise XOR (^): Performs a bitwise XOR operation.
Bitwise NOT (~): Inverts the bits of a number.
Left Shift (<<): Shifts bits to the left.
Right Shift (>>): Shifts bits to the right (sign-propagating).
Unsigned Right Shift (>>>): Shifts bits to the right (zero-fill).
Numeric values (integers, floats)
Example: 42`, `3.14
textual data
example "hello","world
logical values(true
or false
)
example : true,false
unassigned variable
expample: let x; // undefined
International absence of value
example: let x = null;
Large integers
example : let x = 9007199254740991n;
Unique and immutable value
example: let x = Symbol('foo');
collection of key-value pairs
example: let x = { foo: 'bar' };
ordered collection of values
example: let x = [1, 2, 3];
Executable code block
example: function add(a, b) { return a + b; }
Specific moment in time
example: let x = new Date('2022-01-01T00:00:)
Regular expression for pattern matching
example: /abc/
Not a number
example: let x = NaN;
Number too large to handle
example: 1 / 0
Number too small (negative) to handle
example: -1 / 0
=======
- integer
- float
- bolean
- Null
- NaN
- number
- string
- empty string
- infint
- infinit nagetive
- undefind
- Being int
- symbol
- object
github https://www.github.com/MuhammadIbrahim-dev
facebook https://www.facebook.com/Muhammadibrahimdev
instagram https://www.instagram.com/ibrahim_dev_
linkdin https://www.linkedin.com/in/muhammad-ibrahim-dev/
Youtube https://www.youtube.com/@ibrahimdeveloper
tiktok https://www.tiktok.com/@ibrahimdeveloperofficial