What is a Self Invoking Function
In JavaScript, it’s common to hear lots of strange terminology without a lot of description around what it is or what it…
In JavaScript, it’s common to hear lots of strange terminology without a lot of description around what it is or what it…
In the earlier days of the web, there was a battle between two scripting languages VBScript and JavaScript. VBScript, thankfully, eventually died…
In functional programming, being able to reduce is one of the fundamental concepts. Reduce is used to iterate through the values in…
In a lot of web applications, it can be really useful to detect whether the user is still active or not. For…
Merging objects together in JavaScript isn’t very difficult although there’s quite a few different ways that it can be done. Note, I’m…
It’s no secret that JavaScript is now all around us, most html forms are using JavaScript for validation and of course there’s…
Traditionally when somebody said JavaScript, they were talking about a language that just did stuff on the client side like form validation…
Over the last few years, Salesforce has made some really significant changes that allow JavaScript to increasingly be used. By using Salesforce’s…
JavaScript uses functions as the primary way to define scope any variable defined inside of a function is in the local scope. A variable defined outside of a function is in the global scope.
There's a lot of reasons why you may want to sort an array, often it is done to make things easier for the user of the application to understand the data. Arrays are normally sorted to be in ascending order (or alphabetical).
PHP's time() function returns the current unix timestamp. JavaScript doesn't exactly have the same functionality, but it's pretty close. Put a different and more understandable way, it returns the current time measured in seconds since the Unix Epoch (00:00:00 UTC on 1 January 1970). JavaScript has a similar way of getting the time but it's in milliseconds since the Unix Epoch.
In the past, there’s been so many times I needed to tell if an object was numeric. With the below function, it’s…
Ever wonder about how to Remove the Annoying VIP Zone Video from the Niagara Falls Review’s website? I absolutely love following local…
When I was looking at a site with the Chrome Developer Tools, it had a little error icon that said “Resource interpreted…
Dates and DateTimes are difficult to deal with in most languages. The Date object is a datatype that’s built in the JavaScript…
It’s no secret that many of us that use javascript regularly love jQuery because it handles a lot of the cross browser…
Magento is an insanely flexible system that has a lot of potential, but of course with this flexibility comes a lot of…
Coders at Work written by Peter Seibel is a fantastic book of interviews of fifteen very famous programmers. Audience of the book…
jQuery in Action, First Edition is written by Bear Bibeault and Yehuda Katz and is probably the simplest and easiest to understand…