News for hackers. Stuff that matters.
Re:Track down the JavaScript code responsible for polluting ... by Flimm on Thursday February 17, 2022 @02:23AM (#30370414)
Not all global variables get assigned to the window object. For example:

  <script>
  let foo = "bar";
  </script>
  <script>
  console.log(foo); // prints "bar"
  console.log(window.foo); // prints "undefined"
  </script>
Re:Track down the JavaScript code responsible for polluting ... by mmazzarolo on Thursday February 17, 2022 @02:29AM (#30370452)
Hey! Was this a response to another comment? In the post I'm explaining why it's happening (and it's just purposely bad code to show a global instantiation example)