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?