We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0c9eb commit 5b073dcCopy full SHA for 5b073dc
exercises/03-sum-values/index.js
@@ -1,4 +1,5 @@
1
-window.onLoad = function calculateSumListener(){
+// adding the function to the window makes it globally available
2
+window.calculateSumListener = function() {
3
//Return the value of the input #firstNumber
4
var stringA = document.getElementById("firstNumber").value;
5
//Return the value of the input #secondNumber
0 commit comments