← Back to Tutorial
TypeScript Compiler
TypeScript Code
Clear
Compile ▶
let name: string = "John"; let age: number = 30; let isActive: boolean = true; let nullValue: null = null; let undefinedValue: undefined = undefined; let noReturn: void = undefined; let fruits: string[] = ["apple", "banana", "cherry"]; let scores: number[] = [85, 90, 95]; let person: [string, number] = ["Alice", 25];
Output
Download JS
TypeScript code will be compiled here