TORONTO KIDS COMPUTER CLUB | Friday 19:00 JavaScript Homework 21.11.12.
20072
post-template-default,single,single-post,postid-20072,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Friday 19:00 JavaScript Homework 21.11.12.

18 Nov Friday 19:00 JavaScript Homework 21.11.12.

Question:

Given the following table of data about several planets of our solar system, create a web page that enables users to enter a planet name and, at the click of a button, have the distance and diameter appear either in an alert box or (as extra credit) in separate fields of the page.

Planet Distance from the Sun Diameter
Mercury 36 million miles 3,100 miles
Venus 67 million miles 7,700 miles
Earth 93 million miles 7,920 miles
Mars 141 million miles 4,200 miles
No Comments

Sorry, the comment form is closed at this time.