r/programming • u/whackri • Apr 29 '21
Modern JavaScript Explained For Dinosaurs
https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
287
Upvotes
r/programming • u/whackri • Apr 29 '21
62
u/sylvanelite Apr 30 '21
It's worth noting that since this was written, javascript modules now exist in the browser, so you can write models kinda like in the article, without using the command line tools.
But annoyingly, there's some quirks. They syntax isn't the same as in the article. For example:
can be replaced with something like:
And if doing it the "dinosaur" way, instead of having javascript files like:
you can do something like: