Skip to main content
๐Ÿ”ฎ Output PredictionJS JavaScript Medium+20 XP

Spread Operator

What is the result?

JavaScript
const a = [1, 2];
const b = [0, ...a, 3];
console.log(b.length);

๐Ÿ”ฎ What is the output?

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep