mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-23 22:40:25 +08:00
update the comment
This commit is contained in:
parent
3129b65b3f
commit
8d960e7f0e
@ -84,14 +84,14 @@ comments: true
|
||||
=== "JavaScript"
|
||||
|
||||
```js title=""
|
||||
// JavaScript 的数组可以自由存储各种基本数据类型和对象
|
||||
/* JavaScript 的数组可以自由存储各种基本数据类型和对象 */
|
||||
const array = [0, 0.0, 'a', false];
|
||||
```
|
||||
|
||||
=== "TypeScript"
|
||||
|
||||
```typescript title=""
|
||||
// TypeScript 可以定义 JavaScript 数组的类型
|
||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||
const numbers: number = []
|
||||
const characters: string = []
|
||||
const booleans: boolean = []
|
||||
|
Loading…
Reference in New Issue
Block a user