Hello world
suggest changefunction greet(name: string): string {
return `Hello, ${name}!`;
}
console.log(greet("world"));
Run npx tsc to compile the project, then execute the emitted JavaScript with the runtime configured by the project. If another build tool emits JavaScript, use npx tsc --noEmit for type checking.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents