function final(name){
let first=name.split(" “)[0]
function greet(){
console.log(“Heloo”+” "+first)
}
return greet;
}
let vasu=final(“Vasundhara Sharma”);
vasu()
Unable to run the code in visual studio but works fine in node.js
code is fine except the double quotes used for string. elaborate the error you are facing