#weirdjavascript search results
Dealing with float number instead of integers could break your code. I just thought why not I should change 11/10 to 1.1 in the code. And it goes weird #javascript #weirdJavascript

When "2" + "2" is calculated, they are string so concat happens and "22" is the result. Followed by "22" - "2" where "-" is use for subtraction and strings are type casted into integers which results in 20. #javascript #weird #weirdjavascript

So I was bored and found this video in my recommended: youtube.com/watch?v=sRWE5t…. And decided to give it a try myself. So I did, with a lot of explanation because I was bored: github.com/ProfessorQu/js… #javascript #weirdjavascript
youtube.com
YouTube
JavaScript Is Weird (EXTREME EDITION)
Weird JavaScript 😂🤪 console.log(NaN === NaN); // prints false #javascript #weirdjavascript @JavaScript @JavaScriptDaily
#weirdJavascript “JavaScript — The weird parts” by @daffl medium.com/@daffl/javascr…
Yeah! YOU Should...It is indeed a good practice as it somehow enhances the readability of the code. Point Of Termination Right! If You Know You Know ✌️ #javascript #weirdjavascript
Weird JavaScript 😂🤪 let iAmNumber = 1; if (iAmNumber === 1) { console.log(iAmNumber); // Prints ReferenceError let iAmNumber = 2; } @JavaScript @JavaScriptDaily #javascript #weirdjavascript
Weird JavaScript 😂🤪 const a = (1, b = 2); console.log(a); // prints 2 console.log(b); // prints 2 @JavaScript @JavaScriptDaily #javascript #weirdjavascript
Forgot to add tags to help the thread spread. I welcome all logic why this was valid in usage but not as direct variable declaration. #javascript #weirdJavascript #observation #React #Json #techtwitter #techDiscussion #tech #sharing
Weird JavaScript 😂🤪 let infinity = 1/0; console.log(infinity); // prints Infinity console.log(typeof infinity); //prints number console.log(typeof 1/0); //prints NaN #javascript #weirdjavascript @JavaScript @JavaScriptDaily
Weird JavaScript 😂🤪 let num1 = 2; let num2 = 4; const sum = 'num1 + num2'; // Prints 6 console.log(eval(sum)); const iAmEval = eval; // ReferenceError: num1 is not defined. console.log(iAmEvalFunction(sum)); @JavaScript @JavaScriptDaily #javascript #weirdjavascript
Why [’1’, ’7’, ’11’].map(parseInt) returns [1, NaN, 3] in Javascript by @erictongs link.medium.com/iYu53IMwQ5 #weirdjavascript #100daysofcode
Yeah! YOU Should...It is indeed a good practice as it somehow enhances the readability of the code. Point Of Termination Right! If You Know You Know ✌️ #javascript #weirdjavascript
So I was bored and found this video in my recommended: youtube.com/watch?v=sRWE5t…. And decided to give it a try myself. So I did, with a lot of explanation because I was bored: github.com/ProfessorQu/js… #javascript #weirdjavascript
youtube.com
YouTube
JavaScript Is Weird (EXTREME EDITION)
Weird JavaScript 😂🤪 let num1 = 2; let num2 = 4; const sum = 'num1 + num2'; // Prints 6 console.log(eval(sum)); const iAmEval = eval; // ReferenceError: num1 is not defined. console.log(iAmEvalFunction(sum)); @JavaScript @JavaScriptDaily #javascript #weirdjavascript
Weird JavaScript 😂🤪 const a = (1, b = 2); console.log(a); // prints 2 console.log(b); // prints 2 @JavaScript @JavaScriptDaily #javascript #weirdjavascript
Weird JavaScript 😂🤪 let iAmNumber = 1; if (iAmNumber === 1) { console.log(iAmNumber); // Prints ReferenceError let iAmNumber = 2; } @JavaScript @JavaScriptDaily #javascript #weirdjavascript
Weird JavaScript 😂🤪 console.log(NaN === NaN); // prints false #javascript #weirdjavascript @JavaScript @JavaScriptDaily
Weird JavaScript 😂🤪 let infinity = 1/0; console.log(infinity); // prints Infinity console.log(typeof infinity); //prints number console.log(typeof 1/0); //prints NaN #javascript #weirdjavascript @JavaScript @JavaScriptDaily
Forgot to add tags to help the thread spread. I welcome all logic why this was valid in usage but not as direct variable declaration. #javascript #weirdJavascript #observation #React #Json #techtwitter #techDiscussion #tech #sharing
When "2" + "2" is calculated, they are string so concat happens and "22" is the result. Followed by "22" - "2" where "-" is use for subtraction and strings are type casted into integers which results in 20. #javascript #weird #weirdjavascript

Why [’1’, ’7’, ’11’].map(parseInt) returns [1, NaN, 3] in Javascript by @erictongs link.medium.com/iYu53IMwQ5 #weirdjavascript #100daysofcode
‘BANANA’ with JavaScript by @MahdhiRezvi link.medium.com/2IizsaYyc2 What are your personal WTF moments of JavaScript? Feel free to comment :D #javascript #js #weirdjavascript #ilovejavascript #programming #happycoding
Dealing with float number instead of integers could break your code. I just thought why not I should change 11/10 to 1.1 in the code. And it goes weird #javascript #weirdJavascript

#weirdJavascript “JavaScript — The weird parts” by @daffl medium.com/@daffl/javascr…
Dealing with float number instead of integers could break your code. I just thought why not I should change 11/10 to 1.1 in the code. And it goes weird #javascript #weirdJavascript

When "2" + "2" is calculated, they are string so concat happens and "22" is the result. Followed by "22" - "2" where "-" is use for subtraction and strings are type casted into integers which results in 20. #javascript #weird #weirdjavascript

Something went wrong.
Something went wrong.
United States Trends
- 1. $NOICE N/A
- 2. #StunNING_23rd_BDAY 38.9K posts
- 3. #Married2Med N/A
- 4. NINGNING IS THE MAKNAE DAY 34.3K posts
- 5. #닝구리퐁퐁_마이야호가_지켜줄게 31.7K posts
- 6. $BYND 143K posts
- 7. #13YearsOfRed N/A
- 8. SNAP 627K posts
- 9. #wednesdaymotivation 7,200 posts
- 10. Izzo 1,740 posts
- 11. Pro Bowl 1,437 posts
- 12. Hump Day 21.8K posts
- 13. Surviving Mormonism N/A
- 14. Eddie Murphy 4,294 posts
- 15. BNB Chain 69.5K posts
- 16. Pikmin 4 5,067 posts
- 17. MITB 1,317 posts
- 18. Beyond Meat 9,316 posts
- 19. Marcus Mariota N/A
- 20. NextNRG Inc N/A