8 COMMENTs
JavaScript
Yaphi Berhanu, Aug 25

Quick Tip: Get URL Parameters with JavaScript

Yaphi Berhanu shows how to parse the query string and retrieve URL parameters using only vanilla JavaScript. 
3 COMMENTs
JavaScript
Myles English, Aug 24

Create a Music Jam Station with Vanilla JavaScript

Myles English shows how to build a jam station that displays the musical chord changes while a song plays, allowing you to play along. No jQuery required!
8 COMMENTs
JavaScript
Peter Bengtsson, Aug 23

Cache Fetched AJAX Requests Locally: Wrapping the Fetch API

Peter Bengtsson walks through building a wrapper for the Fetch API, step-by-step, to cache fetched AJAX results and avoid repeated requests to the server.
7 COMMENTs
JavaScript
Dan Prince, Aug 15

Quick Tip: What Are Factory Functions in JavaScript

Dan Prince looks at factory functions in JavaScript, examining the different types, their use cases & how they allow us to separate data from computations.
JavaScript
M. David Green, Aug 09

Function Composition: Building Blocks for Maintainable Code

M. David Green demonstrates how to implement function composition in JavaScript, a technique which lends itself to writing cleaner and more succinct code.
4 COMMENTs
JavaScript
Mark Brown, Aug 03

Quick Tip: How to Make a Game Loop in JavaScript

Mark Brown demonstrates how to make a simple game loop in JavaScript, paving the way for you to start making your own browser based games and animations.
7 COMMENTs
JavaScript
Camilo Reyes, Jul 28

Quick Tip: How to Throttle Scroll Events

Camilo Reyes shows how to use a throttle function to manage rapidly fired events, like window scrolling events, and compares this to the debounce function.
2 COMMENTs
JavaScript
Moritz Kröger, Jul 14

Clean Code with ES6 Default Parameters & Property Shorthands

Moritz Kröger shows to use ES6 default parameters and property shorthands to help speed up development and write cleaner, clearer and more organized code.
14 COMMENTs
JavaScript
Samier Saeed, Jun 30

JavaScript Design Patterns: The Singleton

Samier Saeed walks you through the best way to implement a singleton in JavaScript and examines how that has evolved with the rise of ES6.
37 COMMENTs
JavaScript
Jani Hartikainen, Jun 21

15 Ways to Write Self-documenting JavaScript

Jani demonstrates techniques for writing self-documenting code that make it easier to understand, reduce the need for comments, and improve program design.
14 COMMENTs
JavaScript
Jeff Mott, Jun 09

JavaScript Object Creation: Patterns and Best Practices

Jeff Mott guides you through a step-by-step approach to JavaScript object creation—from object literals, through factory functions, ending with ES6 classes.
10 COMMENTs
JavaScript
Kevin Yank, Jun 02

Regular Expressions in JavaScript

Wondering how to validate input with JavaScript? Kevin Yank takes a look at what regular expressions are and what they can do for you.
24 COMMENTs
JavaScript
Yaphi Berhanu, May 26

Make a Simple JavaScript Slideshow without jQuery

Yaphi walks you step-by-step through creating a slideshow with JavaScript and CSS, with practical tips on ensuring accessibility for all.
3 COMMENTs
Web
Jonathan Saring, May 18

Find JavaScript Code Snippets by Functionality with Cocycles

Jonathan introduces Cocycles, a new code search engine that can read code and search open-source code snippets by functionality.
21 COMMENTs
JavaScript
Moritz Kröger, May 18

Untangling Spaghetti Code: How to Write Maintainable JavaScript

Refactoring a legacy code base? Moritz Kröger shows you how to achieve maintainable JavaScript with tests, linting and modularization. 
5 COMMENTs
JavaScript
Giulio Mainardi, May 05

How to Implement Smooth Scrolling in Vanilla JavaScript

Forget jQuery plugins, Giulio Mainardi shows how do smooth scrolling in vanilla JavaScript, and refactors an ES6 library to ES5.
15 COMMENTs
JavaScript
Paul Wilkins, Apr 19

Quick Tip: Function Expressions vs Function Declarations

Paul Wilkins investigates the differences and advantages of function expressions over function declarations in JavaScript.
32 COMMENTs
JavaScript
Camilo Reyes, Apr 13

A Guide to Proper Error Handling in JavaScript

Camilo Reyes explains the best practices for proper error handling in JavaScript, including how to deal with errors thrown by asynchronous code.
3 COMMENTs
JavaScript
M. David Green, Mar 28

Using Map and Reduce in Functional JavaScript

M. David Green demonstrates how using the functional programming techniques of mapping & reducing can lead to cleaner code which is easy to read & maintain.
7 COMMENTs
JavaScript
Dan Prince, Mar 15

6 Ways to Bind JavaScript's this Keyword in React, ES6 & ES7

Dan Prince compares 6 different methods for binding the value of the this keyword in react components, including new methods from ES2015 and ES2016.
17 COMMENTs
JavaScript
Jérémy Heleine, Mar 07

Building a 3D Engine with JavaScript

Learn how to create simple 3D graphics for the web without WebGL. Jérémy Heleine teaches you how to build your own 3D engine from scratch with JavaScript.
17 COMMENTs
JavaScript
Stephen Chapman, Feb 24

Quick Tip: How to Create and Manipulate Arrays in JavaScript

Stephen Chapman shows how to create and manipulate arrays in JavaScript using their length property, something that often trips up those new to the language
15 COMMENTs
JavaScript
Mark Brown, Feb 17

An Introduction to Reasonably Pure Functional Programming

Mark Brown shows how to to write simpler programs with fewer bugs by using techniques from functional programming in JavaScript
3 COMMENTs
JavaScript
Jeff Mott, Feb 10

Quick Tip: Master Closures by Reimplementing Them from Scratch

Jeff Mott helps you truly master the concept of closures in JavaScript using simple examples, demonstrating how they would be implemented from scratch.