the more I learn about JS the more I realize that it’s literally just Lua plus some Python niceties plus a nightmare ecosystem plus T̶̻̒h̷̳̔e̶̙͆ ̷̩̋F̸̮͠ȍ̴̘r̴̫̾b̸͈͋î̵͜ď̵̟d̸̟́e̴͚͆n̴̬͝ ̷̠͝t̷̬̕ë̷̤c̶̺̃h̴͚́n̸̟̈́i̷̬͠q̷̟͒u̷͕͠e̶̡͒ș̶̈́
okay but genuinely, it amazes me how similar Lua and JS are. JS’s prototypes are basically a weird version of Lua metatables, JS’s variables are undefined by default and Lua’s variables are nil by default. getting foo['bar'] is the same thing as foo.bar, etc.
@kasdeya I continue to wish that Lua had become the language of the web instead of JavaScript. We could have had metamethods!! 😭