// 基本的な文法
// const a: Number = 3;
// 警告
// const a: string = 3;
// const b: Number = a;
// console.log(b);
// 配列
// let array1: Array<number> = [1, 2, 3]; // 別の書き方
let array1: Number[] = [1, 2, 3]; // 数字(Number)のみの配列
// let array2: String[] = []; // type error
let array2: Number[] = [];
array2 = array1;
console.log();
-
Notifications
You must be signed in to change notification settings - Fork 0
doremire/learning-typescript
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published