DEV Community

Discussion on: Vanilla.js - Getting Started

Collapse
 
jeremylikness profile image
Jeremy Likness ⚡️

You can. I'll be posting a follow-up article on this, but in general, the steps are:

  1. Write modern JavaScript
  2. Rename from .js to .ts
  3. Compile with ES5 as your target

For smaller snippets of code, like the JavaScript I wrote for my blog search engine, I go to typescriptlang.com and simply paste it in the "playground".