From 65b80f775b1c35e34d0a05602315abd1c657b13d Mon Sep 17 00:00:00 2001 From: Linho Date: Tue, 24 Sep 2024 20:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20NaN=20=E8=BF=90=E7=AE=97?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/types/number.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/types/number.md b/docs/types/number.md index bb9c1b0..53ebfb5 100644 --- a/docs/types/number.md +++ b/docs/types/number.md @@ -280,6 +280,12 @@ NaN * 32 // NaN NaN / 32 // NaN ``` +但是,ES6 引入指数运算符(`**`)后,出现了一个例外。 + +```javascript +NaN ** 0 // 1 +``` + ### Infinity **(1)含义**