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.
12 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.
19 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.
2 COMMENTs
JavaScript
Peter Bengtsson, Dec 29

Smart Front-ends & Dumb Back-ends: Persisting State in AngularJS

Peter Bengtsson teaches you what a state is and how to persist it. The article includes an example of persisting a state with AngularJS.
35 COMMENTs
JavaScript
Jezen Thomas, Dec 15

Quick Tip: Stop Writing Loops and Start Thinking with Maps

A quick tip from Jezen Thomas on how you can stop writing for loops and start using map — a technique that makes for cleaner, more readable code.
6 COMMENTs
JavaScript
Craig Buckler, Dec 04

How to Schedule Background Tasks in JavaScript

Craig looks at requestIdleCallback, a new API designed to improve page performance by running less-critical background tasks at the optimum time.
12 COMMENTs
JavaScript
Tim Severien, Nov 30

The Importance of Writing Code That Humans Can Read

Tim Severien shares a variety of tips and tricks to help you write readable and more maintainable code — something your future self will thank you for.
10 COMMENTs
JavaScript
Paweł Zagrobelny, Nov 25

Frameworkless JavaScript

In this article Paweł Zagrobelny discusses the pros and cons of using a framework and what you should consider before starting your project.
5 COMMENTs
JavaScript
Ritesh Kumar, Nov 19

Getting Started with Service Workers

In this tutorial Ritesh Kumar shows how the network intercepting feature of Service Workers works, making a website that runs even when the user is offline.