+ 1
You progress a little more on your JavaScript course and you will learn about DOM.
Before starting, you need to add a button.
Firstly, you need to use JavaScript to get the DOM elements first
Secondly, get the answers the player has inputted
Thirdly, calculated the marks.
Lastly, present it.
I have coded a demo for you, instead of working on your code directly, in order not to spoil your fun of coding. đ
https://code.sololearn.com/WtoqYi9bXfiM/?ref=app