freeCodeCamp: Global browser objects should not be overwritten by locally declared variables
Describe the Issue
Image of the bug:
-
Write the wrong code
const location = [].
The locally declared variable should not overwrite the location property.
Affected Page
Your code
Expected behavior
Not to have a buggy state with double editors.
Screenshots
No response
System
- Device: [e.g. iPhone 6, Laptop]
- OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
- Browser: [e.g. Chrome, Safari]
- Version: [e.g. 22]
Additional context
Forum:
https://forum.freecodecamp.org/t/js-freecodecamp-bug-report/657713 https://forum.freecodecamp.org/t/server-error-in-javascript/659246 https://forum.freecodecamp.org/t/how-can-i-set-the-freecodecamp-coding-viewer-to-its-original-mode/659527 https://forum.freecodecamp.org/t/cool-issue-in-the-role-play-game-step-52/662613
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16 (14 by maintainers)
I guess we didn’t used to do that? I swear we had an issue with optional chaining at one point caused by old browsers.
Found it
https://github.com/freeCodeCamp/freeCodeCamp/issues/45216
Anyway, I see no reason why we should support such old browsers. It doesn’t seem worth it.