Artboard 1arraymethods

JavaScript array methods

This tutorial explains how to use the following array methods in JavaScript: push() to append elements to the end of an array pop() to remove the last element from an array …

JavaScript quiz tutorial

This tutorial explains how to create a quiz program in the JavaScript language which will look like this (you can change the theme): The quiz will look like this when …

Introduction to JSON

JSON stands for JavaScript Object Notation. JSON is a light-weight data interchange format that uses JavaScript syntax in text format that can be read and used as data by other …

Keyboard events in JavaScript

In earlier JavaScript tutorials we looked at using onclick and onmouseover events to call a function when a user clicked or rolled their mouse over a button, and also the onload …

JavaScript Quiz

Here is some code for a simple Quiz program written in JavaScript: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title>Quiz</title>   <style> div#test{ border:#000 1px solid; padding:10px 40px 40px 40px; } </style> …

JavaScript calcalator

The code below shows how to make a simple calculator with JavaScript. <html> <head> <title>My app</title> </head> <body> <div style=”width:173px; background:lightblue”> <form name=”form”> <input name=”result”/></br></br> <input type=”button” name=”1″ value=”1″ onClick=”run(‘1’)” …