Question: Use prompt() to let user type a number from the web page. If user enters nothing or strings, log Please enter a number! to console;
Use prompt() to let user type a number from the web page. If user enters nothing or strings, log "Please enter a number!" to console; If user enter 10, log "You win 10 point" to console; If user typed 8, log "You win 8 points to console If the number is not 8 or 10, log "NOT MATCHED!!" to consol
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
