JavaScript

JavaScript

Learn more JavaScript by reading up on these informative articles, tutorials, and code snippets on Orangeable.

Top Posts


How to Create a Simple Chat Room with JavaScript


This article walks through the steps of creating a simple JavaScript chat room with websockets and two server-side technologies.

JavaScript Equalizer with the Web Audio API


Create a JavaScript Equalizer that utilizes the Web Audio API, a high-level JavaScript API for processing and synthesizing audio.

How to Create a Smooth Animated Scroll with JavaScript


Learn how to create a smooth animated scroll with very little code in vanilla JavaScript. No third-party libraries are required!


More Posts


JavaScript Comments: Single & Multi-line


Learn how to utilize one of the most often overlooked features of many programming languages including JavaScript: Comments.

JavaScript String Replace: Text & Regular Expressions


This article covers text and regular expression string replacement in JavaScript, one of the most common JS string operations.

JavaScript Promises Tutorial: Resolve & Reject Example


JavaScript Promises are a way of dealing with asynchronous operations and results, either with a resolve or reject callback.

JavaScript Array Length: Get and Set Array Length


Learn how to get and set an array length in JavaScript, how to manipulate array elements and data, and how to empty arrays.

Web Push Notifications in JavaScript with the Push API


This article dives deep into implementing web push notifications with JavaScript and the Push API for the modern browser.

JavaScript Arrays: Push, Pop, Shift, Unshift, & Splice


Learn how to alter and manipulate JavaScript arrays when using the push(), pop(), shift(), unshift(), and splice() methods.

JavaScript Cookies: Get, Set, Delete & Cookie Security


Learn how to get, set, and delete cookies with JavaScript, as well as important cookie security features to take advantage of.

JavaScript includes() Method for Array Searching


The JavaScript includes() method determines whether or not an array contains a specific string or not, returning a boolean value.

Create a Random Number Generator with JavaScript


Learn how to create a random number generator with JavaScript, including how to generate a random number within a specified range.

The JavaScript indexOf() Method for Arrays and Strings


Learn how to use the JavaScript indexof() method for returning array and string index values, character or word positions, etc.

Detecting Idle Browser Tabs with the Page Visibility API


The Page Visibility API is a great resource for determining which of your browser windows or tabs are currently active or idle.

JavaScript Array map() Method: Arrays in JavaScript


Learn how to use the JavaScript Array map() method and how you can read, query, and transform array or page elements in an array.

How JavaScript Works: The Engine, Runtime & Call Stack


Dive into a detailed overview of how JavaScript works, including details on the engine, runtime, call stack, and event queue.

localStorage vs. sessionStorage & the Web Storage API


localStorage and sessionStorage are part of the Web Storage API, allowing you to save strings and key/value pairs locally.

JSON.parse() and JSON.stringify() with JavaScript


JSON.parse() and JSON.stringify() are powerful JavaScript functions used to parse and stringify objects and JSON strings.

The JavaScript forEach() Method for Array Looping


Learn how to use JavaScript's forEach() method to loop through array data and the benefits it provides versus an iterated loop.