javascript-300x120

Functions as First-Class Objects in JavaScript: Why Does This Matter?

Functions in JavaScript are first-class objects (or “first-class citizens”). Fascinating, but… what does that mean? Why does it matter? Read on and we’ll have a look! We’ll start with the basics: What does first-class citizenship mean in general? First-class citizenship, within the world of programming, means that a given entity (such as a function) supports […]

photo-1426604966848-d7adac402bff-1

‘Find Your Park’ with ReactJS, Google Maps and the DarkSky API

This year marks the 100th anniversary of the National Park Service, an organization established by Congress for “preserving the ecological and historical integrity of the places entrusted to its management while also making them available and accessible for public use and enjoyment”. Among the centennial festivities is a call to get out to experience the […]

javascript-300x120

Finding the Most Frequent String in a JavaScript Array

In the following tutorial, I’ll show you how to write a function that takes an array of strings and returns the most frequent string(s) in that array. First I’ll go through the basic concepts and setup, we’ll test it to make sure it works, then I’ll explore a few ways in which you can handle […]

javascript-300x120

ES6 Modules: Use Cases and Examples

Modules are an important part of any programming language. All prior JavaScript versions have lacked this feature. But that did not stop the community from creating their own modularized code. ECMAScript 2015 (ES6) has finally introduced modules as a fully realized function into JavaScript. Modules are now fully naturalized citizens of the JavaScript programming language. […]

javascript-300x120

How to Work with Private Methods in JavaScript?

JavaScript is primarily a language based around objects. Arrays and functions are both objects. Methods are actions that objects can perform. In order to understand how to work with private methods in JavaScript you need to know these fundamentals. Objects are filled with values of data types like strings, numbers and booleans. When values become […]

javascript-300x120

What Is the Instanceof Operator in JavaScript?

The instanceof is an important operator the checks a pre-existing and defined value then returns true if the object is its specified object type, or false if it isn’t. A basic example can be best shown through the following:

The instanceof operator is self explanatory at this point. The second variable is not defined […]

javascript-300x120

How Does Function Hoisting Work in JavaScript?

Hoisting can be a tricky part of JavaScript to understand. This article will give a concise definition of hoisting and simple examples of it in action. In JavaScript, the default action is for declarations to be moved to the top of the code. Declarations are moved to the top of the current scope by the […]

photo-1455636820250-908db9925403-1

Mapping Colorado’s 14er Mountains: React and Redux Mega Tutorial

appendTo is based out of Colorado, a US state famous for the quantity and size of its mountains. 53 mountains over 14,000 feet (4267.2 meters) are located in Colorado’s borders. During the summer, many Colorado residents make it a mission to climb as many of these ’14ers’ as they can. In this React and Redux […]

Reactjs

Dissecting the React Lifecycle and Related Methods

React has proven to be wildly popular by Javascript developers, providing a foundation for building highly “reactive” components that are performant, efficient and generally scale well. However, React can prove a little intimidating to get into, in part because the documentation can be cryptic, and in part because the toolset itself works largely by automating […]

javascript-300x120

A Concise Introduction to JavaScript Design Patterns

JavaScript design patterns are, essentially, efficient problem solving strategies. When you build large scale web applications of high complexity, code becomes increasingly difficult to manage and various problems arise throughout the building process. JavaScript design patterns not only provide solutions to these problems but also organize your code in a way that is easy to […]