Javascript Function Creation Question 4

Introduction

What is the output of the following code?

function makeHello(name) {
  name[name.length] = "Hello " + name[0] + " " + name[1];
};

let name = new Array('CSS', 'Reader');
makeHello(name);
console.log(name[2]); 


Hello CSS Reader



PreviousNext

Related