home.social

#javascriptbugs — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #javascriptbugs, aggregated by home.social.

  1. Math.min() > Math.max() Returns TRUE?!

    ⚠️ YOUR BRAIN WILL EXPLODE! Math.min() is GREATER than Math.max()! This breaks EVERY rule of mathematics! The answer will shock you. 97% of developers get this wrong!

    #javascript #javascripttricks #codingchallenge #math.min #math.max #javascriptquiz #javascriptweird #javascriptwtf #mindblown #javascriptbugs #codingtips #javascriptshorts

    youtube.com/watch?v=au8mR2rlVgo

  2. with() Changes Variable Scope?!

    💥 DEPRECATED BUT STILL WORKS! The 'with' statement changes your scope and makes variables magically refer to object properties! Banned in strict mode but still in old codebases. This caused HUGE security bugs!

    #javascript #javascripttricks #codingchallenge #withstatement #scope #javascriptquiz #javascriptweird #javascriptwtf #deprecated #javascriptbugs #javascriptshorts

    youtube.com/watch?v=pnuVGVN9Kfk

  3. with() Changes Variable Scope?!

    💥 DEPRECATED BUT STILL WORKS! The 'with' statement changes your scope and makes variables magically refer to object properties! Banned in strict mode but still in old codebases. This caused HUGE security bugs!

    #javascript #javascripttricks #codingchallenge #withstatement #scope #javascriptquiz #javascriptweird #javascriptwtf #deprecated #javascriptbugs #javascriptshorts

    youtube.com/watch?v=pnuVGVN9Kfk

  4. with() Changes Variable Scope?!

    💥 DEPRECATED BUT STILL WORKS! The 'with' statement changes your scope and makes variables magically refer to object properties! Banned in strict mode but still in old codebases. This caused HUGE security bugs!

    #javascript #javascripttricks #codingchallenge #withstatement #scope #javascriptquiz #javascriptweird #javascriptwtf #deprecated #javascriptbugs #javascriptshorts

    youtube.com/watch?v=pnuVGVN9Kfk

  5. with() Changes Variable Scope?!

    💥 DEPRECATED BUT STILL WORKS! The 'with' statement changes your scope and makes variables magically refer to object properties! Banned in strict mode but still in old codebases. This caused HUGE security bugs!

    #javascript #javascripttricks #codingchallenge #withstatement #scope #javascriptquiz #javascriptweird #javascriptwtf #deprecated #javascriptbugs #javascriptshorts

    youtube.com/watch?v=pnuVGVN9Kfk

  6. with() Changes Variable Scope?!

    💥 DEPRECATED BUT STILL WORKS! The 'with' statement changes your scope and makes variables magically refer to object properties! Banned in strict mode but still in old codebases. This caused HUGE security bugs!

    #javascript #javascripttricks #codingchallenge #withstatement #scope #javascriptquiz #javascriptweird #javascriptwtf #deprecated #javascriptbugs #javascriptshorts

    youtube.com/watch?v=pnuVGVN9Kfk

  7. Object Keys Get REORDERED Automatically?!

    🚨 THIS IS INSANE! JavaScript silently reorders your object keys! Numbers get sorted, but '01' vs '1' behave differently. Your API response order might be LYING to you! This causes real security bugs!

    #javascript #javascripttricks #codingchallenge #javascriptobjects #objectkeys #javascriptquiz #javascriptweird #javascriptwtf #javascriptbugs #codinginterview #json #javascriptshorts

    youtube.com/watch?v=dCreOmKWYwM

  8. void Operator ERASES Any Value?!

    The void operator is JavaScript's BLACK HOLE! It takes ANY expression and returns undefined. Even when the function returns 42, void turns it into NOTHING! This ancient operator will confuse everyone!

    #javascript #javascripttricks #voidoperator #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #operatorquirks #javascriptbugs #advancedjavascript

    youtube.com/watch?v=Cff1Vtm5QWY

  9. finally{} OVERRIDES return Statement?!

    💥 WATCH THIS NOW! finally block KILLS your return statement! try returns 'A', but finally returns 'B' - guess which one wins? This silent behavior has caused millions in production bugs! Share this NOW!

    #javascript #javascripttricks #codingchallenge #trycatchfinally #returnstatement #javascriptquiz #javascriptweird #javascriptwtf #javascriptbugs #codinginterview #errorhandling #javascriptshorts

    youtube.com/watch?v=CWaukFLyq1A

  10. Proxy Returns Function That Executes Itself?!

    This Proxy BREAKS all rules! When you access ANY property, it returns a function that executes immediately. The property name becomes the function result. This is INSANE behavior that will break your brain!

    #javascript #javascripttricks #proxy #gettrap #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #proxytraps #javascriptbugs #advancedjavascript

    youtube.com/watch?v=uruE895F7ao