DEV Community

Discussion on: JS Objects in depth

Collapse
alco profile image
Jakub Stibůrek

Great article. This helped me: "Only declaring variables with the var keyword will add them to the window object. If you declare a variable with let or const, it won't be added as the property to the window object." Thank you.

Collapse
sjsouvik profile image
Souvik Jana Author

Thanks Jakub. Glad to know that it helped you to understand the concept.