# JavaScript运算符(JavaScript operator)-javascript

## JavaScript运算符(JavaScript operator)

1、运算符（operatior）也被称为操作符，是用于实现赋值、比较和执行算数运算等功能的符号。

2、JavaScript中常用的运算符有：

①算数运算符

②递增递减运算符

③比较运算符

④逻辑运算符

⑤赋值运算符

1、算数运算符概述

2、浮点数的精度问题

①浮点数值的最高精度是17位小数，但在进行算术计算时其精确度远远不如整数。

var result=0.1+0.2;  //结果不是0.3，而是：0.30000000000000004

————————

1、 Operator

1. Operator, also known as operator, is a symbol used to realize the functions of assignment, comparison and arithmetic operation.

2. Common operators in JavaScript are:

① Arithmetic operator

② Increment decrement operator

③ Comparison operator

④ Logical operator

⑤ Assignment operator

2、 Arithmetic operator

1. Overview of arithmetic operators

Concept: the symbol used in arithmetic operation, which is used to perform the arithmetic operation of two variables or values.

2. Precision of floating point numbers

① The highest precision of floating-point values is 17 decimal places, but it is far less accurate than integers in arithmetic calculations.

var result=0.1+0.2; / / the result is not 0.3, but 0.300000000000000 4