Category Archives: JavaScript

JavaScript Benchmark: Google Chrome vs Mozilla Firefox vs Internet Explorer 8

I’ve been wanting to try Chrome ever since it was released but I was hesitant because I got used to Firefox’s (awesome) extensions. But since there are a couple of Chrome extensions now I decided to try it out. Before … Continue reading

Posted in JavaScript | 1 Comment

JavaScript Code Snippet #4

Computers are playing an increasing role in education. Write a program that will help an elementary-school student learn multiplication. Use Math.random to produce two positive one-digit integers. It should then display a question such as How much is 6 times … Continue reading

Posted in JavaScript | Leave a comment

JavaScript Code Snippet #3

One interesting application of computers is the drawing of graphs and bar charts. Write a script that reads five numbers between 1 and 30 out put XHTML text that displays a line containing the same number of adjacent asterisks. For … Continue reading

Posted in JavaScript | Leave a comment

JavaScript Code Snippet #2

Write a JavaScript program that uses looping to print the following table of values. Output the results in an XHTML table. Use CSS to center the data in each column.

Posted in JavaScript | Leave a comment

JavaScript Code Snippet #1

Write a script that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space.

Posted in JavaScript | Leave a comment