Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Madhumalti Prabhu




Posted Questions



Wait...

Posted Answers



Answer


Arithmetic operators are used to perform arithmetic between variables and/or values.

Given that y = 5, the table below explains the arithmetic operators:

For a tutorial about arithmetic operators, read our JavaScript Arithmetic Tutorial.

Assignment operators are used to assign values to JavaScript variables.

Given that x = 10 and y = 5, the table below explains the assignment operators:

For a tutorial about assignment operators, read our JavaScript Assignment Tutorial.

The + operator, and the += operator can also be used to concatenate (add) strings.

Given that t1 = "Good ", t2 = "Morning", and t3 = "", the table below explains the operators:

Comparison operators are used in logical statements to determine equality or difference between variables or values.

Given that x = 5, the table below explains the comparison operators:

For a tutorial about comparison operators, read our JavaScript Comparisons Tutorial.

The conditional operator assigns a value to a variable based on a condition.

Logical operators are used to determine the logic between variables or values.

Given that x = 6 and y = 3, the table below explains the logical operators:

The ?? operator returns the first argument if it is not nullish (null or undefined).

Otherwise it returns the second argument.

The nullish operator is supported in all browsers since March 2020:

The ?. operator returns undefined if an object is undefined or null (instead of throwing an error).

The optional chaining operator is supported in all browsers since March 2020:

Bit operators work on 32 bits numbers. Any numeric operand in the operation is converted into a 32 bit number. The result is converted back to a JavaScript number.

The typeof operator returns the type of a variable, object, function or expression:

Please observe:

The delete operator deletes a property from an object:

The delete operator deletes both the value of the property and the property itself.

After deletion, the property cannot be used before it is added back again.

The delete operator is designed to be used on object properties. It has no effect on variables or functions.

The ... operator expands an iterable into more elements:

The ... operator can be used to expand an iterable into more arguments for function calls:

The in operator returns true if a property is in an object, otherwise false:

The instanceof operator returns true if an object is an instance of a specified object:

The void operator evaluates an expression and returns undefined. This operator is often used to obtain the undefined primitive value, using "void(0)" (useful when evaluating an expression without using the return value).


Answer is posted for the following question.

What is use of $ in javascript?

Answer


Do this by clicking the Messenger tab along the bottom bar of the screen on the main menu This will open a new menu, and on the top right


Answer is posted for the following question.

How to add friends escape from tarkov?

Answer


GoMechanic - Car Service & Repair Center Badlapur

750.0 m · Shop No-2, Mukta Apartment, New DP Rd · 083989 70970


Answer is posted for the following question.

What is the where to get tune up near me?


Wait...