Skip to content

MuhammadIbrahim-dev/javascript-series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

jAVA SCRIPT SERIES

Arithmetic Operators

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 Operators

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.

Comparison Operators

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 Operators

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 Operators

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).

Conditional Ternary Operator

Data types

number

Numeric values (integers, floats) Example: 42`, `3.14

string

textual data example "hello","world

boolean

logical values(trueor false) example : true,false

undefined

unassigned variable expample: let x; // undefined

null

International absence of value example: let x = null;

biginit

Large integers
example : let x = 9007199254740991n;

Symble

Unique and immutable value example: let x = Symbol('foo');

object

collection of key-value pairs example: let x = { foo: 'bar' };

array

ordered collection of values example: let x = [1, 2, 3];

function

Executable code block example: function add(a, b) { return a + b; }

Date

Specific moment in time example: let x = new Date('2022-01-01T00:00:)

RegExp

Regular expression for pattern matching example: /abc/

NaN

Not a number example: let x = NaN;

infinity

Number too large to handle example: 1 / 0

Negative infinity

Number too small (negative) to handle example: -1 / 0

=======

Data types

  1. integer
  2. float
  3. bolean
  4. Null
  5. NaN
  6. number
  7. string
  8. empty string
  9. infint
  10. infinit nagetive
  11. undefind
  12. Being int
  13. symbol
  14. 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