Starting from:

$25

CSE270E Javascript Program1 Solved

Create a javascript program that will do the following.  Please take note of the rubric.

Create this file on your Openstack Instance, make sure code is in your gitlab, and submit a link to your code and git repo here.

1)  Document title should be UID-270-Program1 (UID should be your unique id) (eg: title tag)

2)  There will be one element on the HTML page, a div tag.  The javascript will be placed in-line inside thisdiv-tag.

3)  Your program should implement a simple hi-lo number guessing game.  Pick a random number between 1 and 1000, prompt the user for their guess, and tell the user if they are hi or low relative to your random number.  Display an alert box when the user selects the correct number AND TELL THEM HOW MANY Guesses it took them. 

4)  Then give them a score that appears on the HTML page. Their score will be as follows.  A if it took them10 or fewer tries, B if it took them 20 or fewer tries, etc.  Use some good wording to make them feel "good" 5) A new random number should be picked every time the page loads.

6) COMMENT COMMENT COMMENT.  Your JS code MUST include your name, date, Assignment and the date.

More products