#javascriptflaw hasil pencarian
If you're a developer who writes code daily, remember these 5 things: - First, make it work - Then make it pretty - Add safety with lots of tests - Stay away from over-engineering - Refactor if needed (and it usually is needed) Refactoring is your superpower for cleaning up…
JS pro tip: Add { cause } to errors. Makes debugging and inspection way easier 🔍
“Ever feel like your JavaScript code does things in a random order? 🤯 It’s not broken.....it’s just async JS. Let me explain in plain English. 👇
Typescript can’t just keep quite and overlook error Small mistake mf would have carried speaker 😂
Javascript Error handling tactics every web developer should know:
I feel very strongly that array.sort() in JS should 100% of the time be put on it's own line and return value *never* used. sort() mutates the original array, and returns that same array again, so when chained with functional methods like map/filter/reduce is very bug prone later
Spent hours debugging my custom JS form validation, turns out the “bug” wasn’t in my code 😅 The browser’s default validation was blocking my logic. Lesson learned: add novalidate to your <form> if you want full control with custom JS validation! #WebDev #HTML #JavaScript #coding
Hey @phpstorm I keep having this bug when renaming some variable or object property in javascript files: it finds targets fine and will work flawlessly like 9 of 10 times - but then out of blue sometimes will rename absolutely every occurrence of the keyword in the entire project
When you use optional chaining on null in JavaScript, it returns undefined, not null
MetaDAO fixes this
Every entrepreneur I know thinks the fundraising process is broken. Why capital formation should be onchain: - It’s more efficient - The process is fairer for both sides - Much more transparency
TIL that Error objects in #JavaScript will leak closures until you read `stack`. So don't keep them around. In other words, everything in the closure at the point `new Error` was called, will stick around for as long as you have a reference to the error until you read `stack`.
#javascript quick utility Removing falsy values from an array. #100DaysOfCode #freeCodeCamp #CodeNewbies
Something went wrong.
Something went wrong.
United States Trends
- 1. Jets 83.7K posts
- 2. Bengals 49.8K posts
- 3. Eagles 113K posts
- 4. Giants 95.2K posts
- 5. Caleb 37.4K posts
- 6. Falcons 38.6K posts
- 7. Zac Taylor 5,107 posts
- 8. Browns 47.6K posts
- 9. Bears 66.5K posts
- 10. Myles Garrett 8,571 posts
- 11. Ravens 50.9K posts
- 12. Dolphins 28.1K posts
- 13. Drake Maye 17K posts
- 14. 49ers 31.1K posts
- 15. Skattebo 44.5K posts
- 16. Andy Dalton 9,115 posts
- 17. #MexicoGP 124K posts
- 18. Justin Fields 8,077 posts
- 19. Ollie 25.8K posts
- 20. Sam Williams N/A