Which of the following is arithmetic operator in javascript?
Ngày đăng:
06/09/2022
Trả lời:
0
Lượt xem:
118
Arithmetic Operators : +, -, *, /In JavaScript, arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value. There are four standard arithmetic operators, addition (+), subtraction (-), multiplication (*), and division (/). Show These operators work as they do in other programming languages except the division (/) operator which returns a floating-point division in JavaScript, not a truncated division as it does in languages such as C or Java. For example: In addition, JavaScript provides modules(%), increment(++), decrement(--) and unary negation(-) operators. Example : ( + addition operator) HTML Code:
|