<html>
<head>
<title>JS Projects- Control </title>
<script>
let value1 = Math.round(Math.random( )*10);
let value2 = Math.round(Math.random( )*10);
let sum = value1 + value2;
let userInput = parseFloat(prompt("What is " + value1 + " + " + value2 + " ? "));
if (userInput == sum){
alert("You are correct..." );
}else{
alert("Wrong answer..." );
alert(value1 + " + " + value2 + " = " + sum );
}
</script>
</head>
<body>
</body>
</html>