Question: In a beats.html file: Add Add an input > tag with the following properties: o type: range o id: volumelnput o min: 1 o max:

In a beats.html file:
Add
Add an input> tag with the following properties:
o type: range o id: volumelnput
o min: 1
o max: 10
value: 10
In the script> tag:
Create a new variable named currentvolume with the value !.
Create a new function named setvolume ()
Inside the setVolume () function:
Get the value of the #volumelnput tag.
Divide the value of the volume by 10 and save it in a variable called currentvolume
Call the setVolume() function when the #volume Input changes.
Inside the play() function, set the volume of the audio to the currentVolume
In a beats.html file: Add Add an < input > tag

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 Programming Questions!