Challenge: TypeScript Basics
Test your understanding of the type system in TypeScript by applying your knowledge to real problems.
In this challenge, we’ll have the opportunity to test our understanding of TypeScript’s type system.
By applying our knowledge of TypeScript’s syntax and types, we’ll learn how to make our code more reliable, maintainable, and scalable.
There will be three code snippets, each giving us a different challenge.
Convert JavaScript to TypeScript
In the following JavaScript code, we create a variable named test1
and assign an object value to it that has an
id
...
Get hands-on with 1400+ tech skills courses.