Skip to content

Commit 04bc279

Browse files
authored
Added examples of $ and $$ usage in DOM loaded function
1 parent 9221a07 commit 04bc279

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

new.html

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
window.onload = event => {
3838
/* Your media (images, etc.) just loaded */
39+
const root = $(`#root`)
40+
const elements = $$(`div`)
3941
}
4042

4143
</script>

0 commit comments

Comments
 (0)