About 1,740,000 results
Open links in new tab
  1. JavaScript Operators - W3Schools

    Javascript operators are used to perform different types of mathematical and logical computations. Examples: The Assignment Operator = assigns values. The Addition Operator + adds values. The Multiplication Operator * multiplies values. The Comparison Operator > compares values

  2. Expressions and operators - JavaScript | MDN - MDN Web Docs

    Apr 3, 2025 · This chapter describes JavaScript's expressions and operators, including assignment, comparison, arithmetic, bitwise, logical, string, ternary and more. At a high level, an expression is a valid unit of code that resolves to a value.

  3. How the Question Mark (?) Operator Works in JavaScript

    Feb 3, 2021 · The conditional or question mark operator, represented by a ?, is one of the most powerful features in JavaScript. The ? operator is used in conditional statements, and when paired with a :, can function as a compact alternative to if...else statements. But there is more to it than meets the eye.

  4. JavaScript Comparison and Logical Operators - W3Schools

    Comparison and Logical operators are used to test for true or false. 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:

  5. JavaScript Operators - GeeksforGeeks

    Dec 27, 2024 · JavaScript operators are symbols or keywords used to perform operations on values and variables. They are the building blocks of JavaScript expressions and can manipulate data in various ways. There are various operators supported by JavaScript. 1. JavaScript Arithmetic Operators.

  6. JavaScript Operators (with Examples) - Programiz

    JavaScript operators are special symbols that perform operations on one or more operands (values). In this tutorial, you will learn about JavaScript operators with the help of examples.

  7. JavaScript Arithmetic Operators - Online Tutorials Library

    In JavaScript, an operator is a symbol that performs an operation on one or more operands, such as variables or values, and returns a result. Let us take a simple expression 4 + 5 is equal to 9. Here 4 and 5 are called operands, and + is called the operator. JavaScript supports the following types of operators.

  8. Basic operators, maths - The Modern JavaScript Tutorial

    Nov 14, 2022 · In this chapter, we’ll start with simple operators, then concentrate on JavaScript-specific aspects, not covered by school arithmetic. Before we move on, let’s grasp some common terminology. An operand – is what operators are applied to.

  9. Javascript Operators (With Examples) - TutorialsTeacher.com

    JavaScript provides the following logical operators. && is known as AND operator. It checks whether two operands are non-zero or not (0, false, undefined, null or "" are considered as zero). It returns 1 if they are non-zero; otherwise, returns 0. || is known as OR operator.

  10. Learn JavaScript Operators – Logical, Comparison, Ternary, and …

    Aug 14, 2023 · In JavaScript, we have 8 arithmetic operators in total. They are: Let's see how these operators work one by one. 1. Addition operator. The addition operator + is used to add two or more numbers together. You've seen how this operator works previously, but …

  11. Some results have been removed
Refresh