2026-10-08
Daily Tech Challenge
What does this code log, given that the parameter list has a default value?
function f(a, b = () => a) {
var a = 2;
return [a, b()];
}
console.log(f(1));Thursday, October 8, 2026 · A new challenge drops every day