Question PRG-JS-0052
MediumWhat is the output of this program?
console.log([..."hello"].reverse().join(""), Array.from({length: 3}, (_, i) => i * 2));
- A.
olleh [ 0, 2, 4 ]
- B.
hello [ 0, 1, 2 ]
- C.
Sign up free to see the answer and a step-by-step explanation.