function foo(){ console.log(this); } foo();
Why is this undefined??
this
If a function is executed in a normal way, as in the example you wrote,
The running environment seems to be strict mode.
strict mode
556 Scrap text information after the "View More" button when searching in the Yahoo! News search window
693 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
626 /usr/bin/google-chrome:symbol lookup error:/usr/bin/google-chrome: undefined symbol:gbm_bo_get_modifier
546 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
546 Understanding How to Configure Google API Key
© 2024 OneMinuteCode. All rights reserved.