Elance Exams Answers PDF file

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

What is the output of the following JavaScript? var test = function (firstName, surname) { this.Name.FirstName = firstName; this.Name.Surname = surname; } test.prototype = { Name: { FirstName: undefined, Surname: undefined } } var b = new test('john', 'doe'); var c = new test('bob', 'templeton'); console.log(b.Name.FirstName + ' ' + b.Name.Surname + ', ' + c.Name.FirstName + ' ' + c.Name.Surname);

john doe, john doe
john doe, bob templeton
bob templeton, john doe
bob templeton, bob templeton
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon