DEV Community


Discussion on: Vanilla.js - Getting Started

dr profile image
David R.

Enjoyed the clean walk trough vanilla JS. I hope and expect this to be the beginning of a great series. ;)

Can you give some hints on the .ts to es5 .js reference? Can we easily "transpile" this without any syntactic sugar with plain js as input code?

jeremylikness profile image
Jeremy Likness ⚡️ Author

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 and simply paste it in the "playground".