My Account Log in

3 options

JavaScript brain teasers : excercise your mind / Faraz K. Kelhini.

EBSCOhost Academic eBook Collection (North America) Available online

View online

EBSCOhost Ebook Public Library Collection - North America Available online

View online

Ebook Central College Complete Available online

View online
Format:
Book
Author/Creator:
Kelhini, Faraz K., author.
Language:
English
Subjects (All):
JavaScript (Computer program language).
Physical Description:
1 online resource (108 pages)
Edition:
First edition.
Place of Publication:
[Place of publication unknown] : The Pragmatic Programmers, LLC, [2024]
Summary:
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 IPS 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. What You Need: Certain code examples take advantage of recently introduced JavaScript features. Therefore, it's important to use a JavaScript environment that supports ECMAScript 2020 or a newer version. The simplest way to experiment with the examples is use your browser's console. Just make sure your browser is up-to-date.
Contents:
Cover
Table of Contents
Acknowledgments
Preface
About the Author
About You
About the Code
Part I-JavaScript Brain Teasers
Puzzle 1. Your Code Deserves a Lift
Puzzle 2. The Usurper
Puzzle 3. The Mathemagician
Puzzle 4. Mortal Koncatenation
Puzzle 5. Offbeat Identifierz
Puzzle 6. The Fun-ction
Puzzle 7. How Long Is a Pirate Flag?
Puzzle 8. What's This?
Puzzle 9. The Flat Earth Society
Puzzle 10. Casting Spells with 1s and 0s
Puzzle 11. Dating with Math
Puzzle 12. What's the Value of Math?
Puzzle 13. Netherlands or Holland?
Puzzle 14. The Permanent Closure
Puzzle 15. Cracking the Color Code
Puzzle 16. Waiting in Line
Puzzle 17. Chasing Promises
Puzzle 18. Oo Na Na Na
Puzzle 19. Hexorcism
Puzzle 20. The Arrayist
Puzzle 21. The Chain Master
Puzzle 22. The Shape Shifter
Puzzle 23. Alphabet Aerobics
Puzzle 24. Do You Trust Your Eyes?
Puzzle 25. Truth or Fiction?
Puzzle 26. On or Off?
Puzzle 27. The Grocery List
Puzzle 28. Negative Gravity
Part II-Crafting Puzzles
Puzzle 29. Crafting Your Own JavaScript Puzzle
Index
- SYMBOLS -
- DIGITS -
- A -
- B -
- C -
- D -
- E -
- F -
- G -
- H -
- I -
- J -
- L -
- M -
- N -
- O -
- P -
- R -
- S -
- T -
- U -
- V -
- W -
- Z -.
Notes:
Description based on publisher supplied metadata and other sources.
Description based on print version record.
Description based on print record.
ISBN:
9798888650912
OCLC:
1505732948

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account