JavaScript

퇴근 후 JS - Arithmetic (산술)

제이아이엔 2023. 3. 17. 01:00
반응형

https://www.w3schools.com/js/js_arithmetic.asp

 

JavaScript Arithmetic

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

 

JavaScript Arithmetic Operators

Arithmetic operators perform arithmetic on numbers (literals or variables).

OperatorDescription

+ Addition
- Subtraction
* Multiplication
** Exponentiation (ES2016)
/ Division
% Modulus (Remainder)
++ Increment
-- Decrement

 

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.

OperandOperatorOperand

100 + 50

 

728x90