Here's the HTML form with the JS code inside:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<input type="submit" onclick="printRandomNumbers()">
<script>
function printRandomNumbers() {
let num = Math.round(
Math.random() * 100);
document.body.innerHTML += `<div>${num}</div>`;
}
</script>
</body>
</html>
Note that template literals are used here (line 13)!
Template literals are enclosed by the back-tick (` `) (grave accent) character instead of double or single quotes. Template literals can contain place holders. These are indicated by the Dollar sign and curly braces (${expression}). The expressions in the place holders and the text between them get passed to a function.