Skip to content

Commit e521f58

Browse files
committed
updated variable name
1 parent 89d9452 commit e521f58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter9/map.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
}
1212

1313
function showCoords(eventObj) {
14-
var map = document.getElementById("coords");
14+
var coords = document.getElementById("coords");
1515
var x = eventObj.clientX;
1616
var y = eventObj.clientY;
17-
map.innerHTML = "Map coordinates: " + x + ", " + y;
17+
coords.innerHTML = "Map coordinates: " + x + ", " + y;
1818
}
1919
</script>
2020
</head>

0 commit comments

Comments
 (0)