Skip to content

Instantly share code, notes, and snippets.

View Joe1220's full-sized avatar

Joe1220

View GitHub Profile
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)
let tuple: [string, number, boolean] = ['joe', 100, true];
tuple.push("hello");
let tuple: [string, number, boolean] = ['joe', 100, true];
let array: boolean[] = [true, false];
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)
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. `
};
{
"compilerOptions": {
"module": "commonjs",
"target": "ES2015",
"sourceMap": true,
"outDir": "dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
{
"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",
{
"name": "typescript-test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"global": "^4.3.2",
"typescript": "^3.0.3"
},
"scripts": {
var hello = "hello";
console.log(hello);