ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 103 - Certified JavaScript Developer I discussion

Report
Export

Refer to code below:

function Person() {

this.firstName = 'John';

}

Person.prototype ={

Job: x => 'Developer'

};

const myFather = new Person();

const result =myFather.firstName + ' ' + myFather.job();

What is the value of the result after line 10 executes?

A.
Error: myFather.job is not a function
Answers
A.
Error: myFather.job is not a function
B.
Undefined Developer
Answers
B.
Undefined Developer
C.
John undefined
Answers
C.
John undefined
D.
John Developer
Answers
D.
John Developer
Suggested answer: D
asked 23/09/2024
Frank van Hout
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first