What is the output of the following code?
let a = "apple"; console.log(a); // w w w . j av a 2 s . c o m function myFunct() { console.log(a); a = "book"; console.log(a); } myFunct(); console.log(a);
Click to view the answer
apple apple book book