Question from the Javascript - Fundamentals test

Use spread operator to split an array into two arrays in Javascript

Easy

What does the following code display?

let data = ["1","85","05","78", "006", "084","36"]; 
const [...vitalCard] = data; 
data = ["gender", "year","month","depart","city","civil","key"];

console.log(vitalCard); 
console.log(data);
Author: KahinaStatus: Published(Update)Question passed 3194 times
Edit
9
Community EvaluationsNo one has reviewed this question yet, be the first!