Tech Challenge
2026-11-25
🔷
Daily Tech Challenge
TypeScript
medium
Question 1 of 5
Given the three files below, which statement about `export * as math` in `index.ts` is correct?
Example
// math.ts
export const add = (a: number, b: number) => a + b;
export default function square(n: number) {
return n * n;
}
// index.ts
export * as math from "./math";
// app.ts
import { math } from "./index";
console.log(math.add(1, 2));Wednesday, November 25, 2026 · A new challenge drops every day