Just a collection of random quirks, properties or features of JavaScript that I stumble upon. These examples are just made to help myself better understand them and practice them a little.
function-args.js
: Different ways to handle arguments in functionsgetters-and-setters.js
: Defining Getters and Setters for object propertiesobject-assing.js
: Covering the behavior of theObject.assign()
methodproxy.js
: What is theProxy
object and how to use itclasses.js
: ES6 classes and their usageiterators.js
: a look at iteratorsgenerators.js
: a look at generatorssymbols.js
: what are Symbols and what makes them special
All files are written so you can use QuokkaJS to see necessary output etc. right in your editor. Since those are all console.log()
or identifier expressions you can just run them in node or the browser as well.