mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-24 18:55:36 +08:00
update the type
This commit is contained in:
@ -92,9 +92,9 @@ comments: true
|
||||
|
||||
```typescript title=""
|
||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||
const numbers: number = []
|
||||
const characters: string = []
|
||||
const booleans: boolean = []
|
||||
const numbers: number[] = []
|
||||
const characters: string[] = []
|
||||
const booleans: boolean[] = []
|
||||
```
|
||||
|
||||
=== "C"
|
||||
|
Reference in New Issue
Block a user