ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 186 - Certified JavaScript Developer I discussion

Report
Export

A developer wants to create an object from a function in the browser using the code below.

What happens due to the lack of the mm keyword on line 02?

A.
window.name is assigned to 'hello' and the variable = remains undefined.
Answers
A.
window.name is assigned to 'hello' and the variable = remains undefined.
B.
window.m Is assigned the correct object.
Answers
B.
window.m Is assigned the correct object.
C.
The m variable is assigned the correct object but this.name remains undefined.
Answers
C.
The m variable is assigned the correct object but this.name remains undefined.
D.
The m variable is assigned the correct object.
Answers
D.
The m variable is assigned the correct object.
Suggested answer: A
asked 23/09/2024
Heng Tan
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first