Question 49 of 10049%
49
This code maps the same array using || and then ?? as fallback operators. What gets logged?
const values = [0, "", null, undefined, false, "hello"];
console.log(values.map((v) => v || "fallback"));
console.log(values.map((v) => v ?? "fallback"));
49/100