Skip to Content
TypeScript Intermediate: Types That Survive Real Projects
Intermediate
0 likes
Courses
TypeScript Intermediate: Types That Survive Real Projects

Check Yourself: Working With Code You Didn't Write

Five scenario questions on declaration files, types packages and typing fetch results. If you miss more than one, reread the lessons in this section.

Course content

Sign in to save your progress.

Course Home
3. A declaration file says findRate returns number, but the real code returns undefined for a currency it does not know. A line calls findRate for EUR and then calls toFixed on the result. What is the safest fix?

About

Five scenario questions on declaration files, types packages and typing fetch results. If you miss more than one, reread the lessons in this section.

Duration
5 min
Last update
10/14/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.