Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <script> const numbers = [1, 2, 3, 4, 5, 6]; const [one, two, ...rest] = numbers; document.write("<p>" + one + "</p>"); document.write("<p>" + two + "</p>"); document.write("<p>" + rest + "</p>"); </script> </body> </html>