Currently browsing JavaScript

JavaScript Logo
Ciprian on Tuesday, March 20, 2018 — 2,089 Views

A JSON Overview

JavaScript Object Notation, or JSON, is a plain text data interchange format. It is based on a subset of the third edition of the ECMA-262 [...]

JavaScript Logo
Ciprian on Tuesday, March 20, 2018 — 528 Views

Native Browser Support for JSON

JavaScript Object Notation, or JSON, is a text format used to represent JavaScript objects as strings. Like other text formats, JSON is not [...]

JavaScript Logo
Ciprian on Tuesday, February 27, 2018 — 659 Views

A Quick Introduction to Custom Data Attributes and Vanilla JavaScript

For years, developers have needed a method for adding their own metadata to HTML elements, but no standardized technique existed. One [...]

JavaScript Logo
Ciprian on Thursday, February 1, 2018 — 706 Views

JavaScript Selectors API

Dealing with the DOM can be a very tedious process. Traversing the DOM can quickly clutter your code with nested loops. For years, [...]

JavaScript Logo
Ciprian on Monday, January 22, 2018 — 506 Views

Promises in JavaScript

Writing code in an async programming framework like node.js becomes super complex and unbearably ugly super fast. You are dealing with [...]

JavaScript Logo
Ciprian on Friday, January 19, 2018 — 3,206 Views

Custom Events in JavaScript MVC

Events are the bread and butter in UI development. They are frequently used to kick off JavaScript to deal with a user action on a web [...]

JavaScript Logo
Ciprian on Friday, January 19, 2018 — 490 Views

Cutting Loose: Dynamic Namespacing in JavaScript

Most of the JavaScript libraries come wrapped in an easy to refer single object. The object acts as a namespace, tightly wrapping [...]

JavaScript Logo
Ciprian on Thursday, January 18, 2018 — 612 Views

Image Beacons

Using image beacons is one of those popular techniques that you would probably know about without knowing its name. The technique helps [...]

JavaScript Logo
Ciprian on Wednesday, January 17, 2018 — 469 Views

Understanding JavaScript Currying

I recently fully understood the concept of utilising Currying in JavaScript. The core concept can be grasped from these references: [...]

JavaScript Logo
Ciprian on Wednesday, January 17, 2018 — 453 Views

How and Why to Avoid ‘for’ Loops

Never again use for() for looping. Using for() can be dangerous, especially if you use a library which adds attributes to native objects. [...]

JavaScript Logo
Ciprian on Tuesday, January 16, 2018 — 517 Views

JavaScript Random String Generator

I needed a random string for various purposes. For example, to provide a unique ID to HTML elements via JavaScript. The code below is a [...]

JavaScript Logo
Ciprian on Tuesday, January 16, 2018 — 462 Views

John Resig’s Inheritance

John Resig, the creator of jQuery, has created this JavaScript inheritance code. I am still using it now to simplify several aspects of my [...]

Privacy Policy