FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
My Friend Failed an Interview at a Top Company Because of One JavaScript Question: this
NewsWeb Development

My Friend Failed an Interview at a Top Company Because of One JavaScript Question: this

via Dev.to JavaScriptKelvyn Thai5h ago

My Friend Failed a Top Tech Interview Because of One JavaScript Question: this Recently a friend of mine failed an interview at a top tech company. The interviewer didn't ask about algorithms. Not about system design. Just one topic: The this keyword in JavaScript. At first glance the questions looked simple. But they were designed to reveal whether the candidate truly understands runtime binding in JavaScript. Let's walk through the same interview questions. The Golden Rule of this Before looking at the questions, remember this rule: this is determined by how a function is called, not where it is defined. This single rule explains most this bugs in JavaScript. Interview Question 1 — Object Method vs Unbound Function const module = { x : 42 , getX () { return this . x ; }, }; const unboundGetX = module . getX ; console . log ( unboundGetX ()); What many developers answer 42 Actual result undefined Why? When we write: const unboundGetX = module . getX ; we extract the function from the

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
0 views

Related Articles

Meet the MacBook Neo, Apple’s colorful answer to the Chromebook, starting at $599
News

Meet the MacBook Neo, Apple’s colorful answer to the Chromebook, starting at $599

TechCrunch • 23m ago

Avoid this thing while calculating mid value in data structures.
News

Avoid this thing while calculating mid value in data structures.

Medium Programming • 31m ago

The best TVs of 2026: Expert tested and recommended
News

The best TVs of 2026: Expert tested and recommended

ZDNet • 32m ago

Where to preorder the new iPhone 17E before it hits stores on March 11th
News

Where to preorder the new iPhone 17E before it hits stores on March 11th

The Verge • 52m ago

The Colorful MacBook Neo Is Apple’s Cheapest Laptop Ever
News

The Colorful MacBook Neo Is Apple’s Cheapest Laptop Ever

Wired • 53m ago

Discover More Articles