MCQ
Single Best Answer
Easy
QWhat does the following function do in JavaScript?
function greet(name) {
return "Hello, " + name + "!";
}
ID: #4909
Javascript Data Types MCQ
164 views
Question Info
#4909Q ID
EasyDifficulty
Javascript Data Types MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option A
Explanation
This function takes in a single argument, name, and returns a greeting string that includes the name.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic