Questions tagged [global-scope]
The global scope refers to a namespace that can be accessed throughout the entire program or script without any restrictions.
During my coding test, I encountered an interesting scenario. I had a function called write and used a button with an inline onclick handler to trigger the write() function. function write(text) { alert(text) } <button onclick='write("Some text")'& ...