Starting from:
$30

$24

Javascript Program1 Solution

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.







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



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



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.



Then give them a score that appears on the HTML page. Their score will be as follows. A if it took them



10 or fewer tries, B if it took them 20 or fewer tries, etc. Use some good wording to make them feel "good"




A new random number should be picked every time the page loads.



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






Pgm1




































More products