---
title: "Discussion on \"Track down the JavaScript code responsible for polluting the global scope\" | Hashnode"
description: "Discussion on \"Track down the JavaScript code responsible for polluting the global scope\". Here's how you can debug what JavaScript code is adding global variables to the window object"
url: "https://hashnode.com/posts/track-down-the-javascript-code-responsible-for-polluting-the-global-scope/621632e0a03ae28fe10fd25f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Track down the JavaScript code responsible for polluting the global scope](https://mmazzarolo.hashnode.dev/track-down-the-javascript-code-responsible-for-polluting-the-global-scope?utm_source=hashnode&utm_medium=feed)

Here's how you can debug what JavaScript code is adding global variables to the window object

Feb 23, 2022 · 7 min read · mmazzarolo.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Matteo Mazzarolo](https://hashnode.com/@mmazzarolo)

@mmazzarolo

  
[View profile](https://hashnode.com/@mmazzarolo)

Engineer @invisionapp

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
