Question: create a JavaScript file for the following functions RandomOneof(list): this function takes array as an argumetn and then calls Randomint(low, high) to return an item
create a JavaScript file for the following functions
RandomOneof(list): this function takes array as an argumetn and then calls Randomint(low, high) to return an item from the list
formula list [ Randomint (o, list.length - 1) ];
Randomint(low, high): this function takes two parameter low and high and returns a random number beween low and high
formula Maht.floor(Math.random()*(high - low+1)) +low;
creat a web page to do the following
creat a text bow to accept a yes / no question
creat a clickable 8- ball image.
when user will click the button it will call the RandomOneOf(['yes', 'no', 'maybe', 'will be', 'may not be'])
function to display a random message from the list
display the response in page divison
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
