My code is not working and I don`t know why. I want to make simple thing that input two numbers and prints the sum of them. This is my code:
<script type="text/javascript">
var num1, num2, sum;
num1 = window.prompt("Enter number one");
num2 = window.prompt("Enter number two");
sum = num1 + num2;
window.alert(num1 + "+" + num2 + "=" + sum);
</script>