Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyJavaScriptarray map filter reduceSingle-choice MCQ3,069 views

What will this code log?

let arr = [[1, 2], [3, 4, 5]]; console.log(arr.flatMap(x => x));