Skip to content
Quiz · Primitive and special types · lesson 4 of 8

Quiz — any at run time

What does tsc report, and what does the program print?

TypeScript
const data: any = JSON.parse('{"price": 100}');
console.log(data.price.toFixed(2));
console.log(data.cost.toFixed(2));