Bun is the ultra fast JavaScript runtime that has taken the internet by storm and that is set to dominate the JavaScript development market ...read more
Posted on: 11/13/2021 - 5 min read
Implementing a Substitution Cipher in JavaScript
Cipher's are a good way to put your coding skills into practice. They are usually relatively simple to implement in terms of the amount of c...read more
Posted on: 11/11/2021 - 5 min read
Should You Use a JavaScript Framework?
I've read far too many articles this week about why developers should avoid using JavaScript frameworks in lieu of plain old vanilla JavaScr...read more
Posted on: 9/15/2021 - 5 min read
What is the best way to learn JavaScript?
JavaScript has quickly become one of the most widely used and popular programming languages of the past decade. Thanks in part to technologi...read more
If you are building a user entry form of any kind, you often times want to limit the number of characters that a user is allowed to enter in...read more
Promise based asynchronous code in JavaScript has typically not been the easiest to write. Dealing with promise-chaining and nested callback...read more
Posted on: 8/2/2021 - 2 min read
Difference between DOMContentLoaded and load
Most programmers are familiar with the 'load' event listener in JavaScript....read more
Posted on: 6/25/2021 - 2 min read
How to render a file image preview in JavaScript
A pretty cool feature that you can add to your file upload elements, if you are working with images, is the ability to render a preview on t...read more
Posted on: 6/10/2021 - 5 min read
3 tips when learning JavaScript
If you are looking to become a web developer at any point in time, then JavaScript is going to have to be your go to programming language. A...read more
Posted on: 6/3/2021 - 4 min read
How to deep clone a JavaScript array
If you are looking to make an identical copy of an array in JavaScript, then using the default assignment operator will not do the trick as...read more
The destructuring assignment in JavaScript is one of those things that you might never see yourself using, but that might be just the thing ...read more
Posted on: 4/2/2021 - 3 min read
How to add color and style to the console.log
The developer console in a browser is one of the most valuable tools for any web designer and web developer. Not only does it tell you what'...read more
Posted on: 4/1/2021 - 2 min read
How to create console log groups in JavaScript
Most programmer's are familiar with a browser's built in debugging tools. This includes the standard Inspector used to view the DOM elements...read more
In this article, we are going to implement the draggable functionality (found in jQuery) using vanilla JavaScript with just a few lines of c...read more
Infinite scrolling is a popular technique that social media sites tend to use often, mainly on mobile devices, in which a user naturally scr...read more
Posted on: 2/16/2021 - 3 min read
Implementing a Caesar Cipher in JavaScript
Cipher's are a great way to practice your logical coding skills. Plus, they're kind of fascinating. Ciphers have been used for hundreds, if ...read more
Posted on: 1/27/2021 - 3 min read
How to Ctrl + S to save in JavaScript
The Ctrl + s shortcut has become so natural as a saving mechanism, that I find myself doing it automatically many times with websites....read more
Posted on: 1/25/2021 - 5 min read
How use-strict affects your JavaScript code
You might be familiar with seeing the following directive at the top of JavaScript files....read more
Infinite loading, also referred to as infinite scrolling, is a popular UI/UX technique in which a user does not have to leave the page in or...read more
Validating data is key to ensuring both a good user experience and for keeping your databases clean. And while the HTML standard has more re...read more
Posted on: 1/12/2021 - 5 min read
4 jQuery alternatives to consider in 2021
jQuery is probably still the most popular and widely used JavaScript library out there today, and that's mainly due to its longevity. Latest...read more
Thanks in part to Ajax and front-end heavy frameworks like React and Angular, much of a website these days is generated in real-time dynamic...read more
Posted on: 11/20/2020 - 5 min read
Is it still okay to use jQuery in 2020?
I get this question asked all of the time from my students. And my answer will typically be something like "Why is it wrong to use jQuery?"....read more
While there is no direct bulit-in function in JavaScript (yet) to capitalize the first letter of a string, there are various ways that you c...read more
Right click contextual menu's are a great way to hide menu items that are less commonly used, and that you want to keep out of sight until ...read more
Keeing items on the page when scrolling downwards can be a beneficial feature when you have elements that ideally land somewhere near the to...read more
Posted on: 5/19/2020 - 5 min read
How to use the developer console like a pro
The console window in a browsers developer tools is more than just a long list of red strings letting you know that something has gone wrong...read more
Posted on: 2/25/2020 - 3 min read
Working with Maps in ECMAScript 6
In my last post I went over the Set() data structure that was introduced with ECMAScript 6. Today I will be going over t...read more
Posted on: 2/18/2020 - 3 min read
Working with Sets in JavaScript
ECMAScript 6 introduced the new Set type into its toolset. What are Set's? Essentially they are an ordered list of values that hav...read more
Posted on: 12/5/2019 - 5 min read
What exactly is the JAM Stack?
If you are fan of JavaScript then you no doubt have encountered the term JAMStack at some point in your career. In this post I'm going to br...read more
"Must be online to continue". "You have been disconnected". "Error: Status code: YSLFJLFJSKDFJS"We have all seen that message appear at some...read more
Modal windows are an important UI/UX tool when it comes to pretty much any type of application, whether web, mobile or even your local ATM m...read more
Posted on: 10/27/2019 - 3 min read
Bubble Sort algorithm in JavaScript
Sorting is a common task that is required of programmers many a time. You need to sort things such as search result sets to standard lists o...read more
Posted on: 10/23/2019 - 6 min read
How to create a calculator in JavaScript
You may think you know what a calculator is. But it's not until you begin to code something that you get to see just how complex it can be. ...read more
The year is almost 2020 as of this writing, and the HTML5 specification officially became a stable W3C Recommendation in 2014. Is it now tim...read more
Posted on: 10/17/2019 - 3 min read
How JavaScript optimizes tail calls
A commonly seen useful shorthand when writing code is the ability to call a function as a return statement....read more
Posted on: 10/16/2019 - 4 min read
Custom JavaScript pagination of objects
This is a follow up to my post How To Paginate Through A Collection In Javascript article. In this updated version I wi...read more
Posted on: 9/25/2019 - 4 min read
Should you continue to use jQuery?
I get asked alot of questions about jQuery. And most are pretty valid for a curious mind learning to code. A few popular ones are the follow...read more
Posted on: 8/22/2019 - 2 min read
Creating functions dynamically with JavaScript
The Function constructor is something that isn't usually talked about in JavaScript circles, but it is a useful mechanism to have ...read more
Posted on: 8/15/2019 - 3 min read
JavaScript Tagged Templates (ES6)
There is one feature in JavaScript (ES6) that many developers are totally unaware of and one that can be very beneficial in your p...read more
Posted on: 7/25/2019 - 6 min read
Working with ES6 classes and objects
ES2015 introduced a new syntax into the JavaScript specification that finally allows us to create classes in a much cleaner way than th...read more
Posted on: 7/22/2019 - 4 min read
Working with multiline strings in JavaScript
Today I am going to talk about a seemingly boring topic, strings in JavaScript. But stay with me, as we'll be going into some low-level...read more
Posted on: 7/8/2019 - 5 min read
What does the future of JavaScript look like?
It wasn't that long ago that JavaScript was shunned in the coding community as a small-time scripting language used mainly to hide and show ...read more
Posted on: 7/6/2019 - 2 min read
How to copy to clipboard in JavaScript
Sure you can always just highlight text and then ctrl+c, but sometimes due to text constraints (large text) or just for ease of use to your ...read more
Posted on: 6/11/2019 - 4 min read
A quick look at prototypes in JavaScript
All JavaScript objects inherit properties and methods from a prototype. Prototypes are the mechanism by which JavaScript objects inherit fea...read more
One of the most common questions that a developer will get asked during a live coding interview is to give an implementation of the Fib...read more
Posted on: 5/10/2019 - 3 min read
How the Spread operator works in ES6
The Spread operator is one of those concepts in JavaScript that, while you appreciate what it does, you just can't ever quite seem to find t...read more
Posted on: 4/30/2019 - 4 min read
How to use block bindings in ES6
For a long time now, declaring variables using the standard var keyword was commonplace in JavaScript. While super easy to use, it was not w...read more
If you have not kept up with the many changes that JavaScript has gone through during the past few years, then maybe now is the time to inco...read more
Posted on: 1/7/2019 - 6 min read
Coding A Calendar In JavaScript: Part 2
The following is the follow up to the ever so popular Coding a Calendar in JavaScript, in which I created a calendar widget in JavaScript. ...read more
Posted on: 1/2/2019 - 5 min read
Create a basic text editor in JavaScript
Creating a rich-text editor in JavaScript isn't as difficult as many may think it is and can give you the much needed control over your code...read more
Posted on: 6/26/2018 - 4 min read
Taking a look at jQuery's performance
jQuery is a great JavaScript library for getting things done quickly without having to put too much thought into how you're going to be doi...read more
A student recently asked me what the best way to check for an empty string in JavaScript was. I answered in the best way that I knew how an...read more
Posted on: 1/19/2018 - 5 min read
How to add sorting to any table in JavaScript
And you never thought that algorithm class from college was going to pay off. In this post I'll be going over how to add the ability to sor...read more
Posted on: 11/28/2017 - 4 min read
A Quick Guide To JavaScript Touch Events
The JavaScript specification now supports touch event handling for interactions with mobile devices and tablets....read more
Posted on: 9/27/2017 - 11 min read
Building Tetris In JavaScript Part 2
Welcome to part 2 in this building Tetris tutorial. If you missed part 1, feel free to check it out here. In this second part, we'll be fin...read more
Posted on: 9/19/2017 - 8 min read
How to Code a Tetris clone In JavaScript
Tetris is one of the first games that many of us played growing up. It's fun and challenging and playing a single level can take you from a...read more
Posted on: 6/28/2017 - 6 min read
Google Maps and Markers 101
There is no better way to share a location than with a map and a marker on it. The universal indicator of map based location in this and ag...read more
Posted on: 2/2/2017 - 10 min read
How To Code Blackjack Using JavaScript
Today I will be building a small BlackJack game in pure JavaScript in the hopes that you out there reading this can use it as a frame to ...read more
Posted on: 1/24/2017 - 6 min read
How To Create A Rain Effect Using Crafty.js
In this post I will cover how to create a rain effect using the JavaScript game engine, Crafty.js, for a 2D side-scroller type of game. If ...read more
Posted on: 1/20/2017 - 1 min read
Play My Classic Snake Game
On this rainy day in Los Angeles, stay home, drink too much coffee and enjoy a classic game from our teen years (maybe). I coded this sna...read more
Posted on: 1/9/2017 - 12 min read
Drag And Drop Image Upload In JavaScript
File Uploads have yet to really catch up with the times and with technology. Many reasons for this. Security being a major one. It's an ope...read more
Posted on: 1/5/2017 - 8 min read
Coding A Calendar In JavaScript
In this tutorial I will cover rendering a calendar onto a webpage with a few lines of JavaScript....read more
Posted on: 1/3/2017 - 4 min read
Modal Windows With Pure JavaScript
If you're reading this post, then you are familiar with the concept of modal windows. But just in case you aren't here's a quick recap. Mod...read more
Posted on: 12/20/2016 - 6 min read
"Click To Enlarge" Script With Pure JavaScript
Click to enlarge is a common feature on many sites nowadays. And while it may seem like a trivial feature to add to your website, just try ...read more
Posted on: 12/9/2016 - 4 min read
Add Pagination To Any Table In JavaScript
Pagination is one of those things that everyone hates implementing on their websites, and that we avoid doing until the data size calls for it....read more
Posted on: 8/7/2016 - 4 min read
Taking A Look At the Battery API In JavaScript
Does your browser know your battery status? You bet it does. Let's talk about that. HTML5 keeps adding more and more features to its lin...read more
Posted on: 6/30/2016 - 4 min read
Taking A Look At JavaScript's WebGL
Just recently a friend of mine showed me a game running on a web browser and it was an amazing experience. The game wasn't particularly ama...read more
Posted on: 3/6/2016 - 7 min read
A Beginners Guide To JavaScript
JavaScript is a great language for anyone just starting to code for a variety of reasons. It's lightweight, runs fast and most importantly ...read more
Posted on: 1/7/2016 - 4 min read
Getting Started With JavaScript's WebRTC
WebRTC is a free open sourced technology that allows your everyday browsers to perform Real Time Communication through a set of simple API'...read more
Posted on: 12/10/2015 - 4 min read
JavaScript Doesn't Get Enough Credit
I've worked as a programmer for many many years and in my corporate travels I've noticed that usually there's this idea, this stigma if you...read more
Posted on: 9/14/2015 - 13 min read
Building A Side Scroller With Crafty.JS
It's time to take what I've learned about Crafty.js in the past couple of weeks and to put it to use and build a side scroller game. Also, ...read more
Posted on: 8/23/2015 - 10 min read
How To: Make A Game With Crafty JS Part 3
This is a follow up to my last two Crafty.js posts which you can find in part 1 and part 2 in those links, which covered the basics of gett...read more
Posted on: 6/8/2015 - 10 min read
How To: Make A Game Using Crafty JS Part 2
Welcome to part 2 of my Crafty.js How To. On the last post I started building a quick game that I made up using Crafty.js, a JavaScript-onl...read more
Posted on: 6/5/2015 - 5 min read
How To: Make A Game Using Crafty JS Part 1
I recently went on a journey to find a good and simple to use 2D game engine, and after much reading, much installing, and much configurati...read more
Posted on: 5/20/2015 - 5 min read
Coding A Card Deck In JavaScript
In this post, I will be going over how to build a deck of cards in JavaScript, that can be used for future projects or future games, such a...read more
Posted on: 5/18/2015 - 9 min read
Coding The Snake Game In JavaScript
We've all seen the infamous snake game. It was a staple of non-smartphones back in the day. In this post, we'll be building something simil...read more
Posted on: 5/14/2015 - 4 min read
Image and Text SlideShow In JavaScript
Last time I made a quick tic tac toe clone and today, at the request of a friend, I will make an image/text slideshow widget. We see them a...read more
Posted on: 5/13/2015 - 19 min read
Coding Tic Tac Toe In JavaScript
In this post we will be building the ever popular Tic Tac Toe game in JavaScript. It's a relatively simple implementation and the most comp...read more
Posted on: 3/17/2015 - 4 min read
Getting Started With Node.JS On Windows
For a .NET developer I do sure spend alot of time working with JavaScript. And that's alright, variety is the spice of life. And so this we...read more
Posted on: 3/6/2015 - 5 min read
'Secrets Of The Javascript Ninja' Review
I "know" JavaScript, the way that a new college graduate "knows" every programming language ever made. When I first graduated from college ...read more
Posted on: 2/20/2015 - 5 min read
Game Development And Prototyping In JavaScript
In my previous post I talked about why JavaScript is such a great language for newcomers to the programming world due to it's ability to ge...read more
Posted on: 2/6/2015 - 5 min read
Javascript Is Perfect For Beginning Programmers
I get asked this question alot from many people who want to learn to program. What programming language should I start learning first? And ...read more
Posted on: 12/28/2014 - 7 min read
How To Paginate Through A Collection In JavaScript
Pagination is one of those annoying features that aren't fun to implement in any language, but that is pretty much essential for a good UI....read more
Posted on: 12/7/2014 - 8 min read
A 5 Minute Guide To Knockout JS
In the spirit of trying out new and interesting Javascript frameworks, and just new technologies in general, this week I take Knockout.js f...read more
Posted on: 11/18/2014 - 6 min read
A Quick 5 Minute Guide To Angular JS
Angular.js is a fairly newcomer in the JavaScript framework world. It was first introduced in 2012 by a Google employee, and has since been......read more