<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
</
body
script
var val0, val1, yesOrNo;
window.onload=function() {
val0=parseFloat(prompt('enter a value', ''));
val1=parseFloat(prompt('enter a value', ''));
yesOrNo=confirm('Fold the input values?');
if (yesOrNo) {
alert('Sum = '+(val0+val1));
}
else {
alert('Game over');