提交 62ff0512 编写于 作者: fxy060608's avatar fxy060608

docs: update syntax-uts.md

上级 58215398
......@@ -140,19 +140,19 @@ const status = age >= 18 ? "adult" : "minor";
### 布尔值(Boolean)
有 2 个值分别是:true 和 false。
有 2 个值分别是:true 和 false。
### 数字(Number)
整数或浮点数,例如: 42 或者 3.14159。
整数或浮点数,例如: 42 或者 3.14159。
### 字符串(String)
字符串是一串表示文本值的字符序列,例如:"hello" 。
字符串是一串表示文本值的字符序列,例如:"hello" 。
### null
一个表明 null 值的特殊关键字。
一个表明 null 值的特殊关键字。
## 字面量
......@@ -1405,6 +1405,7 @@ const shallowCopy = fruits.slice() // this is how to make a copy
console.log(arr.0) // a syntax error
```
### Date
创建一个 Date 实例,该实例呈现时间中的某个时刻。Date 对象则基于 Unix Time Stamp,即自 1970 年 1 月 1 日(UTC)起经过的毫秒数。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册