#javascriptbugs — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #javascriptbugs, aggregated by home.social.
-
You Can Use Same Variable Name TWICE?!
🔥 NO WAY! Destructuring allows DUPLICATE variable names in the same statement! const {a, a} = obj is VALID JavaScript! Last one silently wins. ESLint doesn't catch this by default. Tag a dev who needs to see this!
#javascript #javascripttricks #codingchallenge #destructuring #javascriptes6 #javascriptquiz #javascriptweird #javascriptwtf #javascriptbugs #codinginterview #codingtips #javascriptshorts
-
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
-
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
-
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
-
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
-
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
-
Array(3) vs [,,,] Are NOT The Same!
Creating arrays in JavaScript has a hidden trap! Array(3) and [,,,] look identical but behave completely differently. Mind blown!
#javascript #javascripttricks #codingtips #programmingtutorial #arrayconstructor #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arraycreation
-
Array(3) vs [,,,] Are NOT The Same!
Creating arrays in JavaScript has a hidden trap! Array(3) and [,,,] look identical but behave completely differently. Mind blown!
#javascript #javascripttricks #codingtips #programmingtutorial #arrayconstructor #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arraycreation
-
Array(3) vs [,,,] Are NOT The Same!
Creating arrays in JavaScript has a hidden trap! Array(3) and [,,,] look identical but behave completely differently. Mind blown!
#javascript #javascripttricks #codingtips #programmingtutorial #arrayconstructor #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arraycreation
-
Array(3) vs [,,,] Are NOT The Same!
Creating arrays in JavaScript has a hidden trap! Array(3) and [,,,] look identical but behave completely differently. Mind blown!
#javascript #javascripttricks #codingtips #programmingtutorial #arrayconstructor #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arraycreation
-
Array(3) vs [,,,] Are NOT The Same!
Creating arrays in JavaScript has a hidden trap! Array(3) and [,,,] look identical but behave completely differently. Mind blown!
#javascript #javascripttricks #codingtips #programmingtutorial #arrayconstructor #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arraycreation
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
WeakMap REJECTS Primitive Keys?!
WeakMap has a SECRET rule! It ONLY accepts objects as keys. Try to use a string and it FAILS silently. This hidden restriction will cause bugs you'll never find!
#javascript #javascripttricks #weakmap #objectkeys #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #weakreferences #javascriptbugs #advancedjavascript
-
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
-
Array.from() With Sparse Arrays?!
Array.from() has hidden behavior with sparse arrays! Creating arrays this way creates something unexpected. Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #array.from #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arrayconversion
-
"10" > "2" Is FALSE?!
JavaScript string comparison is backwards! Comparing "10" and "2" gives the WRONG answer. This breaks sorting! Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #stringcomparison #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #lexicographic #javascriptwtf #comparisonbug
-
"10" > "2" Is FALSE?!
JavaScript string comparison is backwards! Comparing "10" and "2" gives the WRONG answer. This breaks sorting! Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #stringcomparison #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #lexicographic #javascriptwtf #comparisonbug
-
"10" > "2" Is FALSE?!
JavaScript string comparison is backwards! Comparing "10" and "2" gives the WRONG answer. This breaks sorting! Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #stringcomparison #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #lexicographic #javascriptwtf #comparisonbug
-
"10" > "2" Is FALSE?!
JavaScript string comparison is backwards! Comparing "10" and "2" gives the WRONG answer. This breaks sorting! Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #stringcomparison #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #lexicographic #javascriptwtf #comparisonbug
-
"10" > "2" Is FALSE?!
JavaScript string comparison is backwards! Comparing "10" and "2" gives the WRONG answer. This breaks sorting! Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #stringcomparison #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #lexicographic #javascriptwtf #comparisonbug
-
Proxy Returns Itself Infinitely?!
This Proxy BREAKS reality! Every property access returns ANOTHER Proxy. You can access infinite nested properties and they ALL work. This is INSANE behavior that defies logic!
#javascript #javascripttricks #proxy #recursivetrap #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #infiniteproxy #javascriptbugs #advancedjavascript
-
delete On Array Doesn't Remove It?!
Using delete on arrays creates holes instead of removing elements! Array length stays the same. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #deleteoperator #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #arrayholes #javascriptwtf #arraydeletion
-
Array.map() IGNORES Empty Slots?!
🤯 STOP! This will DESTROY your understanding of arrays! Empty slots vs undefined - they're NOT the same! .map() completely skips holes but processes undefined. This bug crashed a production app with 1M users!
#javascript #javascripttricks #codingchallenge #javascriptarray #arrayholes #javascriptquiz #javascriptweird #javascriptwtf #arraymap #javascriptbugs #codinginterview #javascriptshorts
-
Math.max() With No Arguments?!
Calling Math.max() with nothing returns something you'd NEVER expect! This will break your logic! Watch the chaos!
#javascript #javascripttricks #codingtips #programmingtutorial #math.max #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #mathfunctions #javascriptwtf #edgecases
-
[1,2,3] == [1,2,3] Is FALSE?!
JavaScript array comparison is broken! Two identical arrays are NOT equal. This is why your code fails! Watch the reveal!
#javascript #javascripttricks #codingtips #programmingtutorial #arrayequality #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #comparison #javascriptwtf #equalitycheck
-
Object Keys Order Is INSANE!
JavaScript object key ordering will break your brain! Number keys vs string keys get sorted differently. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #objectkeys #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #propertyorder #javascriptwtf #objectbehavior
-
Object.is() vs === Are DIFFERENT?!
Object.is() and === are NOT the same! There's a hidden difference that will shock you. This breaks equality checks! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #object.is #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #equality #javascriptwtf #strictequality
-
Symbol.toPrimitive Changes Object Math?!
This object LIES about its value! Symbol.toPrimitive lets objects control how they convert to numbers/strings. When you add 5, JavaScript asks the object what it wants to be. The result will SHOCK you!
#javascript #javascripttricks #symbol.toprimitive #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectcoercion #javascriptbugs #advancedjavascript
-
Symbol.toPrimitive Changes Object Math?!
This object LIES about its value! Symbol.toPrimitive lets objects control how they convert to numbers/strings. When you add 5, JavaScript asks the object what it wants to be. The result will SHOCK you!
#javascript #javascripttricks #symbol.toprimitive #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectcoercion #javascriptbugs #advancedjavascript
-
parseInt('08') Returns WHAT?!
JavaScript parseInt has a hidden trap! Leading zeros create unexpected results. This bug has broken production code. See what happens!
#javascript #javascripttricks #codingtips #programmingtutorial #parseint #numberparsing #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #octalnumbers #javascriptwtf
-
Temporal Dead Zone Breaks Code!
JavaScript's Temporal Dead Zone will crash your code! Accessing let/const before declaration throws an error. Watch the chaos!
#javascript #javascripttricks #codingtips #programmingtutorial #temporaldeadzone #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #hoisting #javascriptwtf #letconst
-
Closure With setTimeout Creates Chaos!
Using var in loops with setTimeout creates a closure trap! All timeouts print the same value. This breaks async code! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #closures #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #settimeout #javascriptwtf #asyncclosures
-
0.1 + 0.2 = 0.30000000000000004?!
JavaScript math is broken! Adding 0.1 + 0.2 creates a number that will shock you. This is why financial apps fail! Watch the chaos!
#javascript #javascripttricks #codingtips #programmingtutorial #floatingpoint #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #mathprecision #javascriptwtf #numberprecision
-
Array.from() With Sparse Arrays?!
Array.from() has hidden behavior with sparse arrays! Creating arrays this way creates something unexpected. Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #array.from #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arrayconversion
-
Array.from() With Sparse Arrays?!
Array.from() has hidden behavior with sparse arrays! Creating arrays this way creates something unexpected. Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #array.from #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arrayconversion
-
Array.from() With Sparse Arrays?!
Array.from() has hidden behavior with sparse arrays! Creating arrays this way creates something unexpected. Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #array.from #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arrayconversion
-
Array.from() With Sparse Arrays?!
Array.from() has hidden behavior with sparse arrays! Creating arrays this way creates something unexpected. Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #array.from #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arrayconversion
-
0.1 + 0.2 = 0.30000000000000004?!
JavaScript math is broken! Adding 0.1 + 0.2 creates a number that will shock you. This is why financial apps fail! Watch the chaos!
#javascript #javascripttricks #codingtips #programmingtutorial #floatingpoint #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #mathprecision #javascriptwtf #numberprecision
-
0.1 + 0.2 = 0.30000000000000004?!
JavaScript math is broken! Adding 0.1 + 0.2 creates a number that will shock you. This is why financial apps fail! Watch the chaos!
#javascript #javascripttricks #codingtips #programmingtutorial #floatingpoint #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #mathprecision #javascriptwtf #numberprecision