How can I reverse an array in JavaScript, with each item on a new line?
function logReverse(input) {
let reverse = input.reverse();
return reverse;
}
// The current implementation does not display items on different lines
logReverse(['HTML', 'CSS', 'JavaScript']);
I want the output to be like this when logged IN MY CONSOLE **Each on a new line:
JAVASCRIPT
CSS
HTML
//NOT LIKE THIS
[javascript,html,css]
Any suggestions or solutions are appreciated. Thank you!