We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit c705a43Copy full SHA for c705a43
README.md
index.html
@@ -0,0 +1,13 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Calculator</title>
8
+</head>
9
+<body>
10
+ <h1>Calculator</h1>
11
+ <script src="js/scripts.js"></script>
12
+</body>
13
+</html>
js/scripts.js
@@ -0,0 +1,8 @@
+var add = function(number1, number2) {
+ return number1 + number2;
+ };
+
+ var number1 = parseInt(prompt("Enter a number:"));
+ var number2 = parseInt(prompt("Enter another number:"));
+ var result = add(number1, number2);
+ alert(result);
0 commit comments