Blog

Working with the Date Object in JavaScript

Getting the current date in JavaScript is a piece of cake. The language features a convenient Date object that’s preloaded with all sorts of methods for retrieving temporal values. The syntax is simple enough and the names of the methods, for the most part, are pretty intuitive. In the following examples, I’ll show you how to work with JavaScript’s Date object to get the current year, month, day, time… down to the millisecond! Getting the current date: To get the current date in JavaScript, simply use the new keyword to create a fresh instance of JavaScript’s Date object prototype. [crayon-56c050ac8d3d3719348930/] What gets logged to the console here will look something like this: [crayon-56c050ac8d3e9190592832/] That’s the current day of the week, the current month, the current day of the month, the current year, and even the current time in 24 hour...

Read more

Working With Promises in AngularJS Services

Let's talk about working with promises in AngularJS. To start, $q is… Read more

Quick and Dirty JavaScript Closures Guide

This post covers the essentials of JavaScript Closures with many examples… Read more

Ways to Loop Over an Array in JavaScript

Ways to loop over an array in JavaScript? There are a multitude… Read more

== vs. === in Javascript (Abstract vs Strict equality in js)

== vs. === in JavaScript, understanding abstract vs. strict equality… Read more

How to empty an Array in JavaScript

This short posts describes different ways to empty a JavaScript Array… Read more

The Difference Between Ng-show vs. Ng-if

There are a variety of built-in Angular directives for showing and hiding… Read more

Why Use a Task Runner Like Gulp?

There are a lot of tasks involved with creating and deploying a… Read more

Three Quick Reasons to Learn Web Design

In today's world, having a powerful, professional-looking website is an essential for… Read more

How to Get Started With Backbone.js

Backbone.js is a very powerful Javascript library for front end development. Notice… Read more