Outdoor Adventure
  • Home
  • About
  • Contact
No Result
View All Result
Outdoor Adventure
  • Home
  • About
  • Contact
No Result
View All Result
Outdoor Adventure

JavaScript Operators – Decode Now

admin by admin
March 11, 2024
in Javascript
A A
JavaScript Operators
Share on FacebookShare on Twitter

Last Updated on March 11, 2024 by

JavaScript Operators

  • JavaScript Operator is a special symbol used to perform operations on operands.
  • Operators are used to compare values, perform arithmetic operations.
  • They are essential for performing arithmetic, comparison, logical, and assignment tasks in JavaScript.

Some of the most common JavaScript Operators are given below :-

 

– Arithmetic Operators

 

Related Post

JavaScript Variables

JavaScript Variables – Decode Now

March 11, 2024
Javascript and its Features

Javascript and its Features

March 4, 2024

(1) Addition: ‘+’

var num1 = 10;

var num2 = 20;

var result = num1 + num2;

(2) Subtraction: ‘-‘

var num1 = 10;

var num2 = 20;

var result = num2 – num1;

(3) Multiplication: ‘*’

var num1 = 10;

var num2 = 20;

var result = num1 * num2;

(4) Division: ‘/’

var num1 = 10;

var num2 = 20;

var result = num2 / num1;

(5) Remainder (Modulus): ‘%’

var num1 = 10;

var num2 = 20;

var result = num2 % num1;

(5) Increment : ‘++’

var num1 = 10;

num1++;

 

– Comparison Operators

 

(1) Equal to : ‘==’

5 == “5” returns true because the values are equal after coercion.

(2) Not equal to : ‘!=’

5 != “5” returns false because the values are equal after coercion.

(3) Strict equal to : (===)

5 === “5” returns false because the types are different.

(4) Strict not equal to : (!==)

5 !== “5” returns true because the types are different.

(5) Greater than : (>)

10 > 5 returns true.

(6) Less than : (<)

5 < 10 returns true because 5 is smaller than 10.

(7) Greater than or equal to : (>=)

10 >= 10 returns true because 10 is equals to 10.

(8) Less than or equal to : (<=) :

5 <= 10 returns true because 5 is smaller than 10.

– Bitwise Operators

 

(1) Bitwise AND : (&)

(15 == 20 & 20 == 33) = false

(2) Bitwise OR : (|)

(15 == 20 | 20 == 33) = false

(3) Bitwise XOR : (^)

(15 == 20 ^ 20 == 33) = false

(4) Bitwise NOT : (~)

(~10) = -10

(5) Bitwise Left Shift : (<<)

(10 << 2) = 40

(6) Bitwise Right Shift : (>>)

(10 >> 2) = 2

(7) Bitwise Right Shift with Zero : (>>>)

(10 >>> 2) = 2

 

– Logical Operators

 

(1) Logical AND (&&)

(15 == 20 && 20 == 33) = false

(2) Logical OR (||)

(15 == 20 || 20 == 33) = false

(3) Logical NOT (!)

!(10==20) = true

 

– Assignment Operators

 

(1) Assign: ‘=’

10 + 25 = 35;

(2) Add and Assign: ‘+=’

var a = 10;
a += 20;
Now, a = 30;

(3) Substraction and Assign: ‘-=’

var a = 20;
a -= 10;
Now, a = 10;

(4) Multiplication and Assign: ‘*=’

var a = 20;
a *= 10;
Now, a = 200;

(5) Division and Assign: ‘/=’

var a = 20;
a /= 10;
Now, a = 2;

(6) Modulus and Assign: ‘%=’

var a = 20;
a %= 10;
Now, a = 0;

 

– Special Operators

 

(1) (?:)

Conditional Operator returns value based on the condition. It is like if-else.

(2) ,

Comma Operator allows multiple expressions to be evaluated as single statement.

(3) delete

Delete Operator deletes a property from the object.

(4) in

In Operator checks if object has the given property.

(5) instance of

Checks if the object is an instance of given type.

(6) new

Creates an instance.

(7) typeof

Checks the type of object.

(8) void

It discards the expression’s return value.

(9) yield

Checks what is returned in a generator by the generator’s iterator.

 

Note :-

  • If you want to learn Javascript, Above are the key points which will help you to grow more in your career.
  • Also, if you like this post or have any queries, Do let me know in the comments.
  •  Below are the resources to learn more about Javascript.

Resources :-

  • JavaTpoint
  • Geeks for Geeks
  • W3School
  • Javascript.info
  • Programiz
  • MDN Documentation
Tags: javascriptjs
admin

admin

Related Posts

JavaScript Variables
Javascript

JavaScript Variables – Decode Now

by admin
March 11, 2024
Javascript and its Features
Javascript

Javascript and its Features

by admin
March 4, 2024
Next Post
JavaScript Type Conversion

JavaScript Type Conversion - Decode Now

JavaScript Loops

JavaScript Loops - 2024 Best Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
JavaScript Variables

JavaScript Variables – Decode Now

March 11, 2024
Understanding JavaScript Closures

Understanding JavaScript Closure

August 1, 2024
Javascript Roadmap

Best Javascript Roadmap 2024

September 15, 2024
Mastering JavaScript Error Handling

Mastering JavaScript Error Handling

August 10, 2024
HTML Roadmap

Best HTML Roadmap For Programmers

12
Javascript and its Features

Javascript and its Features

4
Mastering JavaScript Error Handling

Mastering JavaScript Error Handling

1
CSS Roadmap

Best CSS Roadmap 2024

0
Mastering JavaScript Error Handling

Mastering JavaScript Error Handling

August 10, 2024
Understanding JavaScript Closures

Understanding JavaScript Closure

August 1, 2024
Javascript Hoisting

Understanding JavaScript Hoisting

July 16, 2024
JavaScript Object methods

Introducing JavaScript Object Methods

June 1, 2024

About

The best Premium WordPress Themes that perfect for news, magazine, personal blog, etc.

Categories

  • Javascript
  • Roadmaps
  • Uncategorized

Tags

css html java javascript JavaScript Loops js roadmap

Recent Post

  • Mastering JavaScript Error Handling
  • Understanding JavaScript Closure
  • Purchase Now
  • Features
  • Demo
  • Support

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Landing Page
  • Buy JNews
  • Support Forum
  • Pre-sale Question
  • Contact Us

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.