update the type
This commit is contained in:
parent
8d960e7f0e
commit
6941a2b34f
@ -92,9 +92,9 @@ comments: true
|
|||||||
|
|
||||||
```typescript title=""
|
```typescript title=""
|
||||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||||
const numbers: number = []
|
const numbers: number[] = []
|
||||||
const characters: string = []
|
const characters: string[] = []
|
||||||
const booleans: boolean = []
|
const booleans: boolean[] = []
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "C"
|
=== "C"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user