Externally indexed torrent
If you are the original uploader, contact staff to have it moved to your account
Textbook in PDF format
If you've ever felt the exhilaration of cracking a thorny problem or the joy of witnessing elegant code that challenges your mind, then this book is tailor-made for you. Prepare yourself to dive into a diverse array of mind-bending JavaScript brain teasers. Each puzzle is more than just a code exercise it's a gateway to unlocking new insights and honing your abilities. As you work through the challenges, you'll learn to think pragmatically, optimize your code for efficiency, and avoid hidden pitfalls that can catch you off guard. What's more - the puzzle format will help you remember what you've learned!
Over the years, JavaScript has gained a bit of a reputation for its quirky and unique characteristics. It's important for developers to be aware of these quirks to write more robust and predictable JavaScript code. In this book, we invite you on a journey designed to unveil the intricate nuances and peculiarities that define the language's essence.
Learn how to simulate function overloading, embed hidden information within objects, develop self-contained functions capable of maintaining their own local state, generate number sequences using functional programming, handle exotic forms of IIFEs, and prevent loss of precision when dealing with large numbers. Grasp concepts like closures, hoisting, symbols, execution context, event queue, text normalization, and more, one puzzle at a time.
Discover how to create your own custom objects that function as shortcuts, accurately calculate the length of emojis and Unicode characters, master the usage of the "this" keyword, leverage bitwise operators, and convert color names to hex notation for universal use across various platforms. Plus, steer clear of those usual traps and blunders that trip up JavaScript developers.
Forget passive learning. With JavaScript Brain Teasers, you'll actively engage with code puzzles that require creative thinking and problem-solving, which help you memorize difficult concepts.
Preface
Part I. JavaScript Brain Teasers
1. Your Code Deserves a Lift
2. The Usurper
3. The Mathemagician
4. Mortal Koncatenation
5. Offbeat Identifierz
6. The Fun-ction
7. How Long Is a Pirate Flag?
8. What’s This?
9. The Flat Earth Society
10. Casting Spells with 1s and 0s
11. Dating with Math
12. What’s the Value of Math?
13. Netherlands or Holland?
14. The Permanent Closure
Cracking the Color Code
16. Waiting in Line
17. Chasing Promises
18. Oo Na Na Na
19. Hexorcism
20. The Arrayist
21. The Chain Master
22. The Shape Shifter
23. Alphabet Aerobics
24. Do You Trust Your Eyes?
25. Truth or Fiction?
26. On or Off?
27. The Grocery List
28. Negative Gravity
Part II. Crafting Puzzles