What will happen when this code is executed?
function greet(name) {
return "Hello, " + name;
}
console.log(greet("Alisha"));
The function will greet the name "Alisha"
The code will result in an error
"Hello, Alisha" will be logged in the console
Nothing will be logged
This question is part of this quiz :
JavaScript Basics Quiz