3 ms·
Javascript/Typescript, and yes, pretty much. This are how you make objects, this are how you make functions, here's constants, here's variables. Use let instea
by lacampbell 7y ago
Javascript/Typescript, and yes, pretty much.
This are how you make objects, this are how you make functions, here's constants, here's variables. Use let instead of var for the scoping you're familiar with. Here's a standard library, it's a bit spartan but pretty much everything is familiar.
Later on I stopped using 'class' and 'this' and just used closures that return objects (I consider it more idiomatic, YMMV). I got a good feeling for when to use an object and when to use a Map.