2.1 What are Arithmetic Operators?

2.1 What are Arithmetic Operators?

2.1 What are Arithmetic Operators?

JavaScript includes operators as in other languages. An operator performs some operation on single or multiple operands (data value) and produces a result. For example 1 + 2, where + sign is an operator and 1 is left operand and 2 is right operand. + operator adds two numeric values and produces a result which is 3 in this case.

JavaScript includes the following arithmetic operators:

  • Arithmetic Operators
  • Increment and Decrement Operators

Next Section

2.2 Arithmetic Operators


Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.