Skip to main content
Priygop
Home
Courses
Practice
Typing Speed Test
English WPM test - 1, 3, or 5 minutes
Code Typing Practice
Type real code in 40+ languages
Coding Challenges
Sharpen your skills with real interview-style problems
Interview Questions
Prepare for top company technical interviews
Certifications
Blog
Videos
Sign In
Home
Courses
Practice
Typing Speed Test
Code Typing Practice
Coding Challenges
Interview Questions
Certifications
Blog
Videos
Sign In
Home
Challenges
Spread Operator
🔮 Output Prediction
JS JavaScript
Medium
âš¡
+20 XP
Spread Operator
What is the result?
💡
Use Hint
(-5 XP)
JavaScript
const a = [1, 2]; const b = [0, ...a, 3]; console.log(b.length);
🔮 What is the output?
A.
4
B.
3
C.
5
D.
2