microsoft / TypeScript-New-Handbook

Incubation repository for the new TypeScript handbook 🐣
MIT License
649 stars 27 forks source link

Clarify compile-time errors #28

Closed elibarzilay closed 1 year ago

elibarzilay commented 4 years ago

An example like

let foo = "hello!";
foo();

would gets newbie readers very confused: if all you do is "run the code", then doing so with plain JS or with TS gets you an error anyway, so what's the big fuss? Clarify this in the text, and also add a function so that plain JS wouldn't complain, to clarify it further.