Correct Answer: function sayHello(name) { var text = 'Hello ' + name; var sayAlert = function() { alert(text); } return sayAlert; }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
Which is a method of a RegExp object?
Following code evaluate to? var arr = [1, 2, 3, 4]; arr.indexOf(2);
How would you iterate over the following object? var my_data = {a: 'Ape', b: 'Banana', c: 'Citronella'};
What standard pattern is the following code? var x = function () { var y = 0; this.getCurrentCount = function () { return y; } }
Are the parameters of a function checked?
A possible way to allow the display of several authors' names on one post is to ...
Correct way to retrieve a featured image from a post?
Database privileges that are required for WordPress?
Which will return the current plugin directory in WordPress?
Are categories and tags available for pages? Note: Categories must have distinct slugs. Even if two categories have different parents and would therefore have different permalinks, you can't assign them the same slug.