Email the Author
You can use this page to email Xuanyi Chew about Javascript Technical Interview Questions.
About the Book
You've applied for that Javascript position you've always dreamed about.
There is just one hurdle in your way: the technical interview
You really want that position. You get to play with the coolest new technologies and work with the best people. But you're rightfully worried about the technical interview..
"So," the interviewer asks you,
"Can you explain to me why "true" == true
returns false
? Please explain the steps in detail as well", she continues.
You quake in your boots. You know about truthy and falsey values, but you don't exactly know why a truthy value would return false
. Worse, you need to be able to explain how it happened. If only you had brushed up on your knowledge of Javascript quirks. If only there were a book for such reference. You could have aced this interview.
Know the Whys and Hows
The good news is you still can. Like any interviews, you must prepare for your technical interview, especially so for Javascript, since there are many quirks to Javascript. Do you know them all? Why is eval
and with
frowned upon? Can you explain how variable hoisting happens, step-by-step? In many technical interviews, it is the "why" and "how" questions that kill. Prevent that from happening by preparing yourself. This book is for you. It gives you that deep knowledge required for the harder questions that will inevitably be asked.
It does not matter if the position you are applying is for a jQuery position, or a Node.js position. Javascript's quirks happen on both server-side and client-side. This book covers the quirks found in the language itself. Unlike most other online resources, this book does not treat you like a dummy. It assumes you know your basics (and you should, since you're a rockstar Javascript developer) and merely cover the trickier parts of Javascript. Here are some of the things this book covers:
- Why certain Immediately Invoked Function Expressions don't work?
- Why in some contexts, commas act funnily.
- Why in some cases newlines act funnily.
- Why in some cases, Google Chrome appears to support block-level scoping without ES6 syntax
- Why truthy values are not true, and why falsey values are not false.
- What is the call expression
foo)(
- And many more!
If there is a book that will help you prepare for your Javascript interview, it is this one. Written in a conversational style, it helps you relax while conveying the deepest knowledge of Javascript. Exactly the way you would in an interview.
This book is exactly what you need to ace that interview.
About the Author
Xuanyi actually wrote this book while procrastinating on another much larger book on Javascript virtual machines. The inspiration for this book was derived from all the times he was driven crazy by bad and downright bizzare Javascript code. He decided to catalogue those quirks and write up explanations as to why they happen. He also very quickly realized that these are the sorts of questions technical interviewers would ask to test applicants' technical prowess. And so this book was born