home.social

#javascriptweird — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #javascriptweird, 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. void Operator Returns WHAT?!

    🤯 MIND BLOWN! The void operator ALWAYS returns undefined, no matter what! void(1+2+3) = undefined! This ancient JavaScript feature is still used in modern code. 95% of devs don't know this exists!

    #javascript #javascripttricks #codingchallenge #voidoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #javascriptsecrets #codingtips #javascriptshorts

    youtube.com/watch?v=eP1S-b28YM4

  3. void Operator Returns WHAT?!

    🤯 MIND BLOWN! The void operator ALWAYS returns undefined, no matter what! void(1+2+3) = undefined! This ancient JavaScript feature is still used in modern code. 95% of devs don't know this exists!

    #javascript #javascripttricks #codingchallenge #voidoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #javascriptsecrets #codingtips #javascriptshorts

    youtube.com/watch?v=eP1S-b28YM4

  4. void Operator Returns WHAT?!

    🤯 MIND BLOWN! The void operator ALWAYS returns undefined, no matter what! void(1+2+3) = undefined! This ancient JavaScript feature is still used in modern code. 95% of devs don't know this exists!

    #javascript #javascripttricks #codingchallenge #voidoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #javascriptsecrets #codingtips #javascriptshorts

    youtube.com/watch?v=eP1S-b28YM4

  5. void Operator Returns WHAT?!

    🤯 MIND BLOWN! The void operator ALWAYS returns undefined, no matter what! void(1+2+3) = undefined! This ancient JavaScript feature is still used in modern code. 95% of devs don't know this exists!

    #javascript #javascripttricks #codingchallenge #voidoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #javascriptsecrets #codingtips #javascriptshorts

    youtube.com/watch?v=eP1S-b28YM4

  6. void Operator Returns WHAT?!

    🤯 MIND BLOWN! The void operator ALWAYS returns undefined, no matter what! void(1+2+3) = undefined! This ancient JavaScript feature is still used in modern code. 95% of devs don't know this exists!

    #javascript #javascripttricks #codingchallenge #voidoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #javascriptsecrets #codingtips #javascriptshorts

    youtube.com/watch?v=eP1S-b28YM4

  7. Constructor Can Return DIFFERENT Object?!

    Constructors can LIE about what they create! If you return an object, it REPLACES the instance. The 'new' keyword becomes USELESS. instanceof returns false! This breaks OOP principles!

    #javascript #javascripttricks #constructor #classsyntax #instanceof #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #oopquirks #advancedjavascript

    youtube.com/watch?v=NSHaq1zbSWE

  8. Comma Operator Returns LAST Value Only?!

    ⚠️ THIS IS INSANE! The comma operator evaluates ALL expressions but returns ONLY the last one! (1,2,3,4,5) = 5! Used in for loops everywhere but nobody notices. Tag a dev who needs this!

    #javascript #javascripttricks #codingchallenge #commaoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #forloops #codinginterview #javascriptshorts

    youtube.com/watch?v=DEtGXfUIjsE

  9. Comma Operator Returns LAST Value Only?!

    ⚠️ THIS IS INSANE! The comma operator evaluates ALL expressions but returns ONLY the last one! (1,2,3,4,5) = 5! Used in for loops everywhere but nobody notices. Tag a dev who needs this!

    #javascript #javascripttricks #codingchallenge #commaoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #forloops #codinginterview #javascriptshorts

    youtube.com/watch?v=DEtGXfUIjsE

  10. Comma Operator Returns LAST Value Only?!

    ⚠️ THIS IS INSANE! The comma operator evaluates ALL expressions but returns ONLY the last one! (1,2,3,4,5) = 5! Used in for loops everywhere but nobody notices. Tag a dev who needs this!

    #javascript #javascripttricks #codingchallenge #commaoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #forloops #codinginterview #javascriptshorts

    youtube.com/watch?v=DEtGXfUIjsE

  11. Comma Operator Returns LAST Value Only?!

    ⚠️ THIS IS INSANE! The comma operator evaluates ALL expressions but returns ONLY the last one! (1,2,3,4,5) = 5! Used in for loops everywhere but nobody notices. Tag a dev who needs this!

    #javascript #javascripttricks #codingchallenge #commaoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #forloops #codinginterview #javascriptshorts

    youtube.com/watch?v=DEtGXfUIjsE

  12. Comma Operator Returns LAST Value Only?!

    ⚠️ THIS IS INSANE! The comma operator evaluates ALL expressions but returns ONLY the last one! (1,2,3,4,5) = 5! Used in for loops everywhere but nobody notices. Tag a dev who needs this!

    #javascript #javascripttricks #codingchallenge #commaoperator #javascriptoperators #javascriptquiz #javascriptweird #javascriptwtf #forloops #codinginterview #javascriptshorts

    youtube.com/watch?v=DEtGXfUIjsE

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  18. Object Keys Get AUTO-SORTED?!

    Object key order is NOT guaranteed! Numeric string keys get SORTED before other keys. You add 'b' first but '1' appears first in Object.keys()! This auto-sorting will DESTROY your expected order!

    #javascript #javascripttricks #object.keys #keyordering #numerickeys #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectquirks #advancedjavascript

    youtube.com/watch?v=yK-u-WHxO0o

  19. Object Keys Get AUTO-SORTED?!

    Object key order is NOT guaranteed! Numeric string keys get SORTED before other keys. You add 'b' first but '1' appears first in Object.keys()! This auto-sorting will DESTROY your expected order!

    #javascript #javascripttricks #object.keys #keyordering #numerickeys #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectquirks #advancedjavascript

    youtube.com/watch?v=yK-u-WHxO0o

  20. Object Keys Get AUTO-SORTED?!

    Object key order is NOT guaranteed! Numeric string keys get SORTED before other keys. You add 'b' first but '1' appears first in Object.keys()! This auto-sorting will DESTROY your expected order!

    #javascript #javascripttricks #object.keys #keyordering #numerickeys #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectquirks #advancedjavascript

    youtube.com/watch?v=yK-u-WHxO0o

  21. Object Keys Get AUTO-SORTED?!

    Object key order is NOT guaranteed! Numeric string keys get SORTED before other keys. You add 'b' first but '1' appears first in Object.keys()! This auto-sorting will DESTROY your expected order!

    #javascript #javascripttricks #object.keys #keyordering #numerickeys #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectquirks #advancedjavascript

    youtube.com/watch?v=yK-u-WHxO0o

  22. Object Keys Get AUTO-SORTED?!

    Object key order is NOT guaranteed! Numeric string keys get SORTED before other keys. You add 'b' first but '1' appears first in Object.keys()! This auto-sorting will DESTROY your expected order!

    #javascript #javascripttricks #object.keys #keyordering #numerickeys #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectquirks #advancedjavascript

    youtube.com/watch?v=yK-u-WHxO0o

  23. Labels Let You BREAK NESTED Loops?!

    🔥 SECRET FEATURE! You can break out of nested loops using labels! outer: for... break outer; This skips BOTH loops at once! Senior devs don't even know this. Save this for your next interview!

    #javascript #javascripttricks #codingchallenge #labeledstatements #breakstatement #nestedloops #javascriptquiz #javascriptweird #codinginterview #codingtips #javascriptshorts

    youtube.com/watch?v=XITPsBMsGMw

  24. Labels Let You BREAK NESTED Loops?!

    🔥 SECRET FEATURE! You can break out of nested loops using labels! outer: for... break outer; This skips BOTH loops at once! Senior devs don't even know this. Save this for your next interview!

    #javascript #javascripttricks #codingchallenge #labeledstatements #breakstatement #nestedloops #javascriptquiz #javascriptweird #codinginterview #codingtips #javascriptshorts

    youtube.com/watch?v=XITPsBMsGMw

  25. Labels Let You BREAK NESTED Loops?!

    🔥 SECRET FEATURE! You can break out of nested loops using labels! outer: for... break outer; This skips BOTH loops at once! Senior devs don't even know this. Save this for your next interview!

    #javascript #javascripttricks #codingchallenge #labeledstatements #breakstatement #nestedloops #javascriptquiz #javascriptweird #codinginterview #codingtips #javascriptshorts

    youtube.com/watch?v=XITPsBMsGMw

  26. Labels Let You BREAK NESTED Loops?!

    🔥 SECRET FEATURE! You can break out of nested loops using labels! outer: for... break outer; This skips BOTH loops at once! Senior devs don't even know this. Save this for your next interview!

    #javascript #javascripttricks #codingchallenge #labeledstatements #breakstatement #nestedloops #javascriptquiz #javascriptweird #codinginterview #codingtips #javascriptshorts

    youtube.com/watch?v=XITPsBMsGMw

  27. Labels Let You BREAK NESTED Loops?!

    🔥 SECRET FEATURE! You can break out of nested loops using labels! outer: for... break outer; This skips BOTH loops at once! Senior devs don't even know this. Save this for your next interview!

    #javascript #javascripttricks #codingchallenge #labeledstatements #breakstatement #nestedloops #javascriptquiz #javascriptweird #codinginterview #codingtips #javascriptshorts

    youtube.com/watch?v=XITPsBMsGMw

  28. 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!

    #javascript #javascripttricks #functionconstructor #globalscope #variablescope #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #scopequirks #advancedjavascript

    youtube.com/watch?v=LKJ_9YKFSKY

  29. 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!

    #javascript #javascripttricks #functionconstructor #globalscope #variablescope #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #scopequirks #advancedjavascript

    youtube.com/watch?v=LKJ_9YKFSKY

  30. 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!

    #javascript #javascripttricks #functionconstructor #globalscope #variablescope #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #scopequirks #advancedjavascript

    youtube.com/watch?v=LKJ_9YKFSKY

  31. 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!

    #javascript #javascripttricks #functionconstructor #globalscope #variablescope #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #scopequirks #advancedjavascript

    youtube.com/watch?v=LKJ_9YKFSKY

  32. 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!

    #javascript #javascripttricks #functionconstructor #globalscope #variablescope #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #scopequirks #advancedjavascript

    youtube.com/watch?v=LKJ_9YKFSKY

  33. typeof Never Throws Error?!

    typeof is INDESTRUCTIBLE! It works on undeclared variables WITHOUT throwing ReferenceError. Both declared undefined AND never-declared return 'undefined'. You can't tell them apart! This is INSANE!

    #javascript #javascripttricks #typeof #undeclaredvariables #referenceerror #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #typechecking #advancedjavascript

    youtube.com/watch?v=vPABx2rdJ54

  34. Array Holes Are NOT undefined?!

    MIND BLOWN! An empty slot in an array is NOT the same as undefined. The hole doesn't exist as a property! map() SKIPS holes but processes undefined. This invisible difference will break your code!

    #javascript #javascripttricks #arrayholes #sparsearrays #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #arraymethods #advancedjavascript

    youtube.com/watch?v=gJiOuy3o34U