Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Assuming that each code is called with: "var say = sayHello('Mary Jane');", which of the following is a closure?

function sayHello(name) { var text = 'Hello ' + name; return text; }
function sayHello(name) { alert( 'Hello ' + name) }
function sayHello(name) { var text = 'Hello ' + name; var sayAlert = function() { alert(text); } return sayAlert; }
function sayHello(name) { console.log('Hello ' + name;) }
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon