Skip to content
Quiz · First steps · lesson 7 of 7

Quiz — an error and the JavaScript file

What happens if hello.ts holds this code and you run tsc hello.ts, then node hello.js?

TypeScript
let count: number = 1;
count = "two";
console.log(count);