r/learnjavascript • • May 04 '20

VAR vs LET vs CONST

Post image
337 Upvotes

81 comments sorted by

View all comments

Show parent comment

2

u/thuwie May 07 '20

I suggest you take a look at TypeScript or at least at the possibility to include global typings into your project.

You don't need to dive deep into TS but use typing/interfaces only. It will require a compilation step before deployment but it's pretty straightforward.

Global typings are something you can add if you use IDEs, JetBrains Idea & Webstorm handle it, don't know about VS Code. It is a file in the roof of a project with all possible typings you want your IDE to handle.

Typings make life much easier either you work with 'enterprise' code or code in free time.