Skip to content

Commit cc4f861

Browse files
jblang94yangshun
authored andcommitted
Make response to global scope question more concise (yangshun#81)
1 parent d41f0a5 commit cc4f861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

questions/javascript-questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ I would not advise you to write the above during interviews though. Just stick w
691691

692692
### Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?
693693

694-
Every script has access to the global scope, and if everyone is using the global namespace to define their own variables, there will bound to be collisions. Use the module pattern (IIFEs) to encapsulate your variables within a local namespace.
694+
Every script has access to the global scope, and if everyone uses the global namespace to define their variables, collisions will likely occur. Use the module pattern (IIFEs) to encapsulate your variables within a local namespace.
695695

696696
[[] Back to top](#js-questions)
697697

0 commit comments

Comments
 (0)