#variablescope

JavaScriptBuzzJavaScriptBuzz
2026-01-27

new Function() Ignores Local Scope?!

Function constructor is DANGEROUS! It always runs in GLOBAL scope, ignoring any variables in the enclosing function. Your local 'x' becomes invisible. This scoping behavior will cause HIDDEN bugs!

youtube.com/watch?v=LKJ_9YKFSKY

Turbo Learn PHPTurboLearnPHP
2026-01-09

PHP Static Variable Trap

Watch this! PHP static variables persist across function calls. See what happens when you call the function twice. Game changer!

youtube.com/watch?v=eWWcAmfs1yI

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst