Question: Visual studio. Create a Javascript code that randomly picks 5 random numbers from a range 0 - 9 . There should be a function when

Visual studio. Create a Javascript code that randomly picks 5 random numbers from a range 0-9. There should be a function when clicking the Pick 5! BUTTON that will generate 5 random numbers from 0-9. The button must work in this javascript project to generate the numbers. Here is the starter Javascript code and the HTML CODE is Already completed and provided. The problem with the code is that the Pick 5! button doesn't work and the only the refresh in the webpage making it work. I want the button Pick 5! to work. function pick5(){
'use strict';
}
function init(){
'use strict';
document.getElementById('generate').onclick = pick5;
}
window.onload = init; ~HTML Code Done~:
 Visual studio. Create a Javascript code that randomly picks 5 random

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!