Skip to content

Commit 5b073dc

Browse files
authored
Update index.js
1 parent 9a0c9eb commit 5b073dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/03-sum-values/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
window.onLoad = function calculateSumListener(){
1+
// adding the function to the window makes it globally available
2+
window.calculateSumListener = function() {
23
//Return the value of the input #firstNumber
34
var stringA = document.getElementById("firstNumber").value;
45
//Return the value of the input #secondNumber

0 commit comments

Comments
 (0)