conventions.io

Tech Challenge

2026-11-17

🟨

Daily Tech Challenge

JavaScript

medium
Question 1 of 5

What two values does this code log, given that obj is still strongly referenced?

Example
const obj = { id: 42 };
const ref = new WeakRef(obj);

console.log(ref.deref() === obj, ref.deref().id);

Tuesday, November 17, 2026 · A new challenge drops every day