Category Archives: Vanilla JavaScript

JavaScript || How To Get A Variable Name As A String Using Vanilla JavaScript

The following is a module with functions which demonstrates how to get the name of a variable as a string using vanilla

JavaScript/CSS/HTML || Notice.js – Simple Notification Message With Success, Warning & Error Icons Using Vanilla JavaScript

The following is a module with functions that demonstrates how to display a simple notification message with success, warning & error icons.

JavaScript || How To Get All Unique Values In An Array & Remove Duplicates Using Vanilla JavaScript

The following is a module with functions which demonstrates how to get all distinct values in an array & remove duplicates from

JavaScript || Circular Array – How To Index Into Array As If It Is Circular

The following is a module with functions which demonstrates how to index into an array as if it is circular. 1. Circular

JavaScript || How To Find All Combinations Of Well-Formed Brackets Using Vanilla JavaScript

The following is a module with functions which demonstrates how to find all combinations of well-formed brackets. The task is to write

JavaScript || How To Calculate Nth Catalan Number Using Vanilla JavaScript

In combinatorial mathematics, a Catalan number forms a sequence of natural numbers that occur in various counting problems. It can be used

JavaScript/CSS/HTML || Modal.js – Simple Modal Dialog Prompt Using Vanilla JavaScript

The following is a module which allows for a simple modal popup dialog panel in vanilla JavaScript. This module allows for custom

JavaScript || How To Get The Minimum & Maximum Values In A Simple & Object Array

The following is a module with functions which demonstrates how to get the minimum and maximum values in a simple and object

JavaScript/CSS/HTML || Placeholder.js – Simple Animated Floating Label For Textbox, Dropdown & Textarea Using Vanilla JavaScript

The following is a module which allows for a simple animated floating placeholder label for textbox, dropdown & textarea using vanilla javascript.

JavaScript/CSS/HTML || Modal.js – Simple Modal Popup Panel Using Vanilla JavaScript

The following is a module which allows for a simple modal popup panel in vanilla JavaScript. Options include allowing the modal to

JavaScript || Movement.js – Move, Resize, Drag & Drop Elements With The Mouse, Mobile Touch & Keyboard Using Vanilla JavaScript

The following is a module that handles dragging and resizing elements with a mouse/touch, moving elements with the keyboard via the arrow

JavaScript || How To Make Change – Display The Total Sales Amount In Dollars & Cents Using Modulus

The following is a module with functions which demonstrates the use of the modulus (%) operator to make change. So for example,

JavaScript || Swap Two HTML Element Locations In Dom Tree Using Vanilla JavaScript

The following is a module with functions that demonstrates a simple way how to swap two HTML element locations in the Dom

JavaScript || Check If An Element Comes Before Or After Another Element In Dom Tree Using Vanilla JavaScript

The following is a module with functions that demonstrates a simple way how to check if an element comes before or after