Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Spread Operator with Arrays
Easy
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Use spread operator to manipulate arrays.
Sample Input:
[1, 2, 3]
Sample Output:
[1, 2, 3, 4, 5]
Hints
Hint 1
Use ... to spread array elements
Hint 2
Combine with other array elements
Hint 3
Create a new array with spread operator
Code Editor
Reset
Run
Save
Loading...