Skip to content

Commit 4e9a335

Browse files
authored
Correct comment in 1.13.1
Strictly speaking, there is no error here, as `typeof` does not produce errors with undefined variables.
1 parent dccca58 commit 4e9a335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/13-modules/01-modules-intro/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Compare to regular script below:
260260
261261
<script>
262262
*!*
263-
alert(typeof button); // Error: button is undefined, the script can't see elements below
263+
alert(typeof button); // button is undefined, the script can't see elements below
264264
*/!*
265265
// regular scripts run immediately, before the rest of the page is processed
266266
</script>

0 commit comments

Comments
 (0)