JavaScript: JavaScript and Web Development Source Code

Difference Between [] and {}: Arrays vs. Objects in JavaScript

Difference Between [] and {}: Arrays vs. Objects in JavaScript

In JavaScript, we use braces {} for creating an empty object and brackets [] for creating an empty array. I find the Developer console in…

JavaScript Program to Show Current Time In Various Formats

This is a small script that can display the current time in "Military Time" format or "12 Hour Time" format with the push of a…

JavaScript Program to Show Date and Timestamp

This is a simple JavaScript Program to show Date and Time Stamp on a webpage. In this script  we define a JavaScript function named getFormattedDateTime.…

JavaScript Code to show Browser Information

This JavaScript code does a great job of displaying information about your web browser. Information includes Browser Name, Version, your computer's OS platform, and whether…

Airport Calculator

This useful JavaScript calculator will tell you the degrees, Nautical Miles, Statute Miles, and Kilometers between your originating and destination airports. It's got a built-in…

Browser Check

It's often necessary to make a script only accessible to the newer browsers (that can support the script without error) and keep older browsers from…

Phone Bill

Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have…

JavaScript – Printing the Periodic Table

The periodic table is a tabular arrangement of the chemical elements, ordered by their atomic number, electron configuration, and recurring chemical properties, whose adopted structure…

Interest Calculator

Use JavaScript to find out just how much that new house or car is going to cost you each month. Enter values into the fields…

Blinker

This script allow you to quickly blink the background. With a click of a button, the background changes from white to blue and back several…