Array.prototype.includes

:::info 用与找出数组里面是否存在某个元素,可以查找NaN :::

  1. const arr = [1, 2, 3, 4, NaN];
  2. arr.includes(1); // true
  3. arr.includes('1'); // false
  4. arr.includes(NaN); true

指数函数的中缀表示法**

  1. 2**3 === 2*2*2 // 这两个是恒等的
  2. let b = 6;
  3. b=**3 === b = b*b*b; // 这里也是恒等的
  4. // 就是一个语法糖,代表的数字的指数