r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

43

u/chuckySTAR May 28 '19
document.querySelector()

10

u/BargePol May 28 '19

document.querySelectorAll("body")[0]

11

u/senocular May 28 '19

document.body

7

u/BargePol May 28 '19

thatsthejoke.jpg