Building A Calculator
Lesson 10Author : 🦒
Last Updated : October, 2017
Code
var num1 = window.prompt("Num1: ");
var num2 = window.prompt("Num2: ");
num1 = parseFloat(num1);
num2 = parseFloat(num2);
alert(num1 + num2);
var num1 = window.prompt("Num1: ");
var num2 = window.prompt("Num2: ");
num1 = parseFloat(num1);
num2 = parseFloat(num2);
alert(num1 + num2);