minus-squareMacN'Cheezus@lemmy.todaytoTechnology@lemmy.zip•In 1995, a Netscape employee wrote a hack in 10 days that now runs the InternetlinkfedilinkEnglisharrow-up11·16 days agoYep. JavaScript is basically a LISP wearing a Java trenchcoat. Functions are first class citizens and can be passed around just like variables. Object orientation is weird and bolted on as an afterthought. In case you’re wondering just how much functional programming is possible in JS, I recommend reading this: https://mostly-adequate.gitbook.io/mostly-adequate-guide/ linkfedilink
minus-squareMacN'Cheezus@lemmy.todaytoTechnology@lemmy.zip•In 1995, a Netscape employee wrote a hack in 10 days that now runs the InternetlinkfedilinkEnglisharrow-up20·16 days agoYes, but all of the quirks it had back then are still there, for backwards compatibility linkfedilink
Yep. JavaScript is basically a LISP wearing a Java trenchcoat. Functions are first class citizens and can be passed around just like variables. Object orientation is weird and bolted on as an afterthought.
In case you’re wondering just how much functional programming is possible in JS, I recommend reading this: https://mostly-adequate.gitbook.io/mostly-adequate-guide/