Run ❯
Get your
own Node
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
// Function with explicit parameter and return types function greet(name: string): string { return `Hello, ${name}!`; } // TypeScript will ensure you pass the correct argument type greet("Alice"); // OK // greet(42); // Error: Argument of type '42' is not assignable to parameter of type 'string'
Hello, Alice!