FrontendInterviews.dev

678. concat and Symbol.isConcatSpreadable

Easy•

Predict the output.

const x = {0:'a', length:1, [Symbol.isConcatSpreadable]: true}
console.log([].concat(x).join(''))

What is printed in the console?

Select an option and submit your answer.
Next Problem