The Complete Guide to JavaScript Classes

JavaScript uses prototypal inheritance: every object inherits properties and methods from its prototype object. The traditional class as the blueprint to create objects, used in languages like Java or Swift, does not exist in JavaScript. The prototypal inheritance deals only with objects. The prototypal inheritance can emulate the classic class inheritance. ES2015 introduces the class syntax: a syntactic … Read more

Understanding This, Bind, Call, and Apply in JavaScript

The author selected the Open Internet/Free Speech Fund to receive a donation as part of the Write for DOnations program. The this keyword is a very important concept in JavaScript, and also a particularly confusing one to both new developers and those who have experience in other programming languages. In JavaScript, this is a reference to an object. The object that this refers to can … Read more

Practical Ways to Write Better JavaScript

In our 2019 Dev Survey, we asked what kind of content Stack Overflow users would like to see beyond questions and answers. The most popular response was “tech articles written by other developers.” So from now on we’ll be regularly publishing articles from contributors. If you have an idea and would like to submit a pitch, you can email … Read more

jsonbox.io

A HTTP based JSON storage. It lets you store, read & modify JSON data over HTTP APIs for FREE. Ideal for small projects, prototypes or hackathons, where you don’t have to spin up your own data store. API Documentation Base URL: https://jsonbox.io/ Create You can create a record (or add a record) to a box by … Read more

First-Class Functions in JavaScript

Introduction JavaScript has first-class functions. This means functions can be treated like other variables, which turns out to be incredibly important behavior to understand as you advance as a JavaScript developer. The following three bullets represent important first-class function behavior: Functions can be assigned to variables Functions can be passed as arguments to other functions … Read more