WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 32997556

(no title)

dphnx | 3 years ago

`document.all` can be used in this way:

  <div id="foo"></div>
  <script>
    const { foo } = document.all
    // do something with foo
  </script>
Don't use it though, it's deprecated as well[1].

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Document/al...

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com