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
Javascript Question of the Day #20 [Talk::Overflow]
NewsWeb Development

Javascript Question of the Day #20 [Talk::Overflow]

via Dev.to JavaScriptValPetal Tech Labs1mo ago

This post explains a quiz originally shared as a LinkedIn poll . 🔹 The Question function User ( name ) { this . name = name ; } User . prototype . settings = { theme : ' light ' , notifications : true }; const alice = new User ( ' Alice ' ); const bob = new User ( ' Bob ' ); alice . settings . theme = ' dark ' ; console . log ( bob . settings . theme ); console . log ( alice . hasOwnProperty ( ' settings ' )); console . log ( alice . settings === bob . settings ); Hint: When you write alice.settings.theme = 'dark' , ask yourself: are you creating a new property on alice , or reaching through the prototype chain to mutate something shared? Follow me for JavaScript puzzles and weekly curations of developer talks & insights at Talk::Overflow: https://talkoverflow.substack.com/ 🔹 Solution Correct answer: A) dark, false, true The output is: dark false true 🧠 How this works JavaScript's prototype chain has an asymmetry that trips up even experienced developers: reading a property walks up th

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
28 views

Related Articles

I Found the Same Hidden Equation in a 2,000-Year-Old Calendar, QR Codes, Jazz Theory, and Quantum…
News

I Found the Same Hidden Equation in a 2,000-Year-Old Calendar, QR Codes, Jazz Theory, and Quantum…

Medium Programming • 20h ago

1 Dangerous Habit That Kills 99% of Programmers’ Startup Dreams Before They Start(Nobody Talks…
News

1 Dangerous Habit That Kills 99% of Programmers’ Startup Dreams Before They Start(Nobody Talks…

Medium Programming • 20h ago

Letting agents in 2026 do research? It’s still too early to tell..
News

Letting agents in 2026 do research? It’s still too early to tell..

Medium Programming • 20h ago

PEP Talk #1 -​ PEP 723: Inline Script Metadata
News

PEP Talk #1 -​ PEP 723: Inline Script Metadata

Medium Programming • 20h ago

Judge halts Nexstar/Tegna merger after FCC let firms exceed TV ownership limit
News

Judge halts Nexstar/Tegna merger after FCC let firms exceed TV ownership limit

Ars Technica • 21h ago

Discover More Articles