This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function create_mail(id: string, name: string, address: string, wait: boolean): string { | |
| return `${name}'s id is ${id}. his email address is ${address}. | |
| The email will be determined based on the wait(${wait}) value. ` | |
| }; | |
| create_mail("1", "joe1220", "joe1220@daum.net", false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let tuple: [string, number, boolean] = ['joe', 100, true]; | |
| tuple.push("hello"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let tuple: [string, number, boolean] = ['joe', 100, true]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let array: boolean[] = [true, false]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function create_mail(id: string, name: string, address: string, wait: boolean): string { | |
| return `${name}'s id is ${id}. his email address is ${address}. | |
| The email will be determined based on the wait(${wait}) value. ` | |
| }; | |
| create_mail("1", "joe1220", "joe1220@daum.net", false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function create_mail(id, name, address, wait) { | |
| return `${name}'s id is ${id}. his email address is ${address}. | |
| The email will be determined based on the wait(${wait}) value. ` | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "compilerOptions": { | |
| "module": "commonjs", | |
| "target": "ES2015", | |
| "sourceMap": true, | |
| "outDir": "dist" | |
| }, | |
| "include": ["src/**/*"], | |
| "exclude": ["node_modules"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "typescript-test", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "repository": "", | |
| "author": "joe1220 <joe1220@daum.net>", | |
| "license": "MIT", | |
| "dependencies": { | |
| "crypto-js": "^3.1.9-1", | |
| "global": "^4.3.2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "typescript-test", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "dependencies": { | |
| "global": "^4.3.2", | |
| "typescript": "^3.0.3" | |
| }, | |
| "scripts": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var hello = "hello"; | |
| console.log(hello); |