Operators

Dear Sciaku Learner you are not logged in or not enrolled in this course.

Please Click on login or enroll now button.

If you have any query feel free to chat us!

Happy Coding! Happy Learning!

Lecture 129:- Operators

In JavaScript, operators are symbols or keywords used to perform operations on variables or values. There are several types of operators in JavaScript:

  1. Arithmetic Operators: These operators are used to perform arithmetic operations like addition, subtraction, multiplication, division, modulus, increment, and decrement. Some examples of arithmetic operators are +, -, *, /, %, ++, and --.
  2. Comparison Operators: These operators are used to compare two values and return a boolean value (true or false). Some examples of comparison operators are ==, !=, >, <, >=, and <=.
  3. Logical Operators: These operators are used to combine multiple conditions and return a boolean value. Some examples of logical operators are && (logical AND), || (logical OR), and ! (logical NOT).
  4. Assignment Operators: These operators are used to assign values to variables. Some examples of assignment operators are =, +=, -=, *=, /=, and %=.
  5. Bitwise Operators: These operators are used to perform bitwise operations on binary numbers. Some examples of bitwise operators are & (bitwise AND), | (bitwise OR), ^ (bitwise XOR), ~ (bitwise NOT), << (left shift), and >> (right shift).
  6. Conditional (Ternary) Operator: This operator is used to assign a value to a variable based on a condition. The syntax of the conditional operator is condition ? value1 : value2.
  7. Comma Operator: This operator is used to evaluate multiple expressions and return the value of the last expression. The syntax of the comma operator is expression1, expression2, ..., expressionN.
  8. typeof Operator: This operator is used to determine the type of a value. The syntax of the typeof operator is typeof value.

These are some of the most commonly used operators in JavaScript. Understanding and using them effectively is essential for writing efficient and effective code.

15. Starting with JavaScript

Comments: 2

profile
@niteshguptav63
17-Nov-2024, 01:39 PM

I am not able to access videos from second class and further. I have already completed first class

profile
@niteshguptav63
16-Nov-2024, 10:56 AM

When will I get my course?

profile
@admin79
17-Nov-2024, 01:29 PM

Now, Your query was resolved.

Frequently Asked Questions (FAQs)

How do I register on Sciaku.com?
How can I enroll in a course on Sciaku.com?
Are there free courses available on Sciaku.com?
How do I purchase a paid course on Sciaku.com?
What payment methods are accepted on Sciaku.com?
How will I access the course content after purchasing a course?
How long do I have access to a purchased course on Sciaku.com?
How do I contact the admin for assistance or support?
Can I get a refund for a course I've purchased?
How does the admin grant access to a course after payment?