Leanpub Header

Skip to main content

Javascript Technical Interview Questions

Prepare Yourself For That Dream Job

Ace Javascript technical interview questions by knowing the Whys and the Hows of Javascript quirks.

Minimum price

$23.42

$29.19

You pay

$29.19

Author earns

$23.35
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
88
Pages
24,864Words
About

About

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.

Share this book

Author

About the Author

Xuanyi Chew

Contents

Table of Contents

    • How To Read This Book
      • What This Book Covers
    • Introduction
  • The Basics
    • The Basics
      • What are the types available in JavaScript
      • What is the difference between null and undefined?
      • Does JavaScript have classical inheritence?
      • What is the difference between classical inheritence and prototypal inheritence?
      • How are variables in JavaScript scoped?
      • What is a closure?
      • What is the difference between the Global Object and host object?
      • What are module loaders like AMD and CommonJS?
      • Other Basic Things You Should Know
  • The Quirks
    • On IIFE Behaviour
      • The Explanation
      • Exceptions
      • During The Interview
    • On The Comma Operator
      • The Explanation
      • Miscelleny
      • Practice Questions
      • During The Interview
    • On “Block Scoping”
      • The Explanation
      • During The Interview
    • On Truthy and Falsey Things
      • The Explanation
      • Exceptions
      • During The Interview
    • On Automatic Semicolon Insertion
      • The Explanation
      • The Value of Using Crockford-style IIFE Declarations
      • Practice Question
      • During The Interview
    • On new and Constructors
      • The Explanation
      • Practice Questions
      • During The Interview
    • On Object Coercion
      • The Explanation
      • Practice Questions
      • During The Interview
    • On Numbers
      • The Explanation
      • During The Interview
    • On Regular Expressions
      • The Explanation
      • During An Interview
    • On Operator Precedence
      • The Explanation
      • During The Interview
    • On Global Variables
      • The Explanation
      • During The Interview
    • On Functions And Evaluating Them
      • The Explanation
      • During The Interview
  • Bonus Material
    • What Every JavaScript Developer Should Know About Floating Points
      • Floating Points
      • The Radix Point
      • Removing the Radix Point
      • IEEE 754
      • Rounding Errors
      • Handling Floating Points in JavaScript

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub