About 138,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 + …

  2. Basic math in JavaScript — numbers and operators

    Apr 11, 2025 · Basic number operations in JavaScript — add, subtract, multiply, and divide. numbers are not numbers if they are defined as strings, and can cause calculations to go …

  3. JavaScript Operators (with Examples) - Programiz

    JavaScript operators are special symbols that perform operations on one or more operands (values). For example, 2 + 3; // 5. Here, we used the + operator to add the operands 2 and 3.

  4. JavaScript Arithmetic Operators - GeeksforGeeks

    Nov 22, 2024 · JavaScript Arithmetic Operators are the operator that operate upon the numerical values and return a numerical value. The addition operator takes two numerical operands and …

  5. Basic operators, maths - The Modern JavaScript Tutorial

    Nov 14, 2022 · We know many operators from school. They are things like addition +, multiplication *, subtraction -, and so on. In this chapter, we’ll start with simple operators, then …

  6. JavaScript Operators

    From basic arithmetic to complex logical evaluations, operators enable you to add, subtract, compare, assign values, and more. Arithmetic operators in programming perform …

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

    Aug 14, 2023 · Let's start with arithmetic operators. The arithmetic operators are used to perform mathematical operations like addition and subtraction. These operators are frequently used …

  8. 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, …

  9. How To Do Math in JavaScript with Operators - DigitalOcean

    Aug 25, 2021 · In this tutorial, we will go over arithmetic operators, assignment operators, and the order of operations used with JavaScript number data types. Arithmetic operators are symbols …

  10. JavaScript Arithmetic - W3Schools

    Operators and Operands. The numbers (in an arithmetic operation) are called operands. The operation (to be performed between the two operands) is defined by an operator.

  11. Some results have been removed