TS

TypeScript Assignment Playground

assignment.ts โ†’ tsc โ†’ assignment.js โ†’ Chrome
๐Ÿ“˜ assignment.ts
๐Ÿ“’ assignment.js (compiled)
Write TS
โ†’
tsc compile
โ†’
JS output
โ†’
Run in Chrome
Concepts Covered โ€” Click to Jump
๐Ÿ”ข
Primitive Types
string ยท number ยท boolean ยท null ยท undefined
๐Ÿท๏ธ
Type Aliases
type ยท union ยท literal
๐Ÿ“
Interfaces
interface ยท nested ยท optional ?
๐Ÿ“‹
Arrays
T[] ยท Array<T> ยท typed elements
๐Ÿ“ฆ
Objects
inline shape ยท typed properties
โš™๏ธ
Functions
params ยท return ยท generics ยท void
Console Output
Click โ–ถ Run Code to execute the compiled JavaScript in Chrome...