mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-31 22:33:10 +08:00
update the type
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user