This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each of the following questions:
What is the relationship between TypeScript and JavaScript?
TypeScript is a superset of JavaScript.
TypeScript is exactly the same as JavaScript.
TypeScript is a subset of JavaScript.
Why is it necessary to compile (or transpile) TypeScript code to JavaScript before you can use it in your applications?
It's not necessary because you only need to rename the TypeScript file with a .js extension for it to work.
TypeScript code is considered valid JavaScript while JavaScript code isn't valid TypeScript.
TypeScript includes code features that aren't compatible with browsers.
What does the command npm install -g typescript do?
npm install -g typescript
Installs npm so you can install TypeScript.
Installs the TypeScript compiler globally on the machine.
Installs Node.js and npm.
You must answer all questions before checking your work.
Continue
Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.
Was this page helpful?