1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
export const PI = 3.14159; export function add(a, b) { return a + b; } export class Counter { constructor(start = 0) { this.value = start; } inc() { this.value += 1; return this.value; } }