Correct Answer: var Person = function(firstname,lastname){ this.firstname = firstname; this.lastname = lastname; }
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
When automatic conversion of primitive values to objects (autoboxing) works in Javascript?
What will be the output when the following code executed console.log(flase === '0')
You want a dictionary-like data object such that you can give it the word to look up and it gives you the definition. Which of the following would create such an object and log a look-up to the console?
The following one line function will return true if str is a palindrome; otherwise, it returns false. function isPalindrome(str) { str = str.replace(/\W/g, '').toLowerCase(); return (str == str.split('').reverse().join('')); }
What's the output? (function() { var a = b = 1; })(); console.log (typeof b);
Which statement is correct about null and undefined?
Which functions determine whether the beginning of the param1 instance matches the param2?
Which are the valid JavaScript codes to obtain the number of milliseconds since the epoch?
The replacement string can include the following special replacement patterns?
Javascript provides the following functions to be frequently used in animation programs?