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

    When used on strings, the + operator is called the concatenation operator. Adding two numbers, will return the sum as a number like 5 + 5 = 10. Adding a number and a string, will return the …

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

    For example, 3 + 4 or x * y. This form is called an infix binary operator, because the operator is placed between two operands. All binary operators in JavaScript are infix. A unary operator …

  3. Is it possible to create custom operators in JavaScript?

    Dec 22, 2013 · First line: infixl 6 ∘. Second line: x ∘ y = x + 2 * y. Technically you can, by writing your own lexical parser and defining your own name of script type in the <script> block. This …

  4. JavaScript Operators - GeeksforGeeks

    Dec 27, 2024 · JavaScript comparison operators are essential tools for checking conditions and making decisions in your code. 1. Equality Operator (==) The Equality operator is used to …

  5. 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 …

  6. JavaScript Operators (with Examples) - Programiz

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

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

    Aug 14, 2023 · Here, the two variables x and y are added together using the plus + operator. We also used the console.log() method to print the result of the operation to the screen. You can …

  8. Working with JavaScript Operators - Tutorial Republic

    In this tutorial you will learn how to manipulate or perform the operations on variables and values using the operators in JavaScript. Operators are symbols or keywords that tell the JavaScript …

  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 …

  10. JavaScript Arithmetic Operators - Online Tutorials Library

    JavaScript supports the following arithmetic operators −. Assume variable x holds 10 and variable y holds 20, then −. Adds two operands. x + y will give 30. Subtracts the second operand from …

  11. Some results have been removed
Refresh