Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptimmutability patternsSingle-choice MCQ

Which expression produces a new array with the element at index 1 replaced by `'x'`, leaving the original `arr` untouched?

const arr = ['a', 'b', 'c'];