Beginner
TypeScript
Q4 / 100
How do you declare a variable named age of type number in TypeScript?
Correct! Well done.
Incorrect.
The correct answer is A) let age: number = 25;
A
Correct Answer
let age: number = 25;
Explanation
TypeScript uses a colon followed by the type after the variable name to annotate types.
Progress
4/100