Chapter 4
Functions in TypeScript — quiz
5 questions · ~4 min
Chapter 4 quiz
Question 1 of 5
You write a test helper: `function calculateTotal(prices) { return prices.reduce((s, p) => s + p, 0) }`. With strict mode on, what does the TypeScript compiler say?