Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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~:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions