Closed fregante closed 6 years ago
!= null
querySelectorAll
NodeList
null
new Image()
<img>
querySelector
document.body
Love that cleaner code. Thanks!
!= null
is impliedquerySelectorAll
always returns anNodeList
, never anull
new Image()
is the shortest way to create an<img>
querySelector
can check the content of an attributedocument.body
is shorter thanquerySelector