Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptarray map filter reduceSingle-choice MCQ

Which is the output?

console.log([1,2,3].flatMap(x=>[x]).reduce((a,b)=>a+b,0));