Question 13
Consider the following Script embedded in an HTML document.
function parentFunc(name) { return { sayHello: () => "Hi! " + name, sayBye: () => "Bye! " + name, changeName: (newName) => { name = newName; }, };}const arpan = parentFunc("Arpan");const beli = parentFunc("Beli");
console.log(arpan.sayHello());console.log(beli.sayHello());arpan.changeName("Beli");console.log(arpan.sayBye());What will be the output on console, if the HTML document is rendered using a browser?