ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 75 - Certified JavaScript Developer I discussion

Report
Export

Refer to code below:

Function muFunction(reassign){ Let x = 1; var y = 1; if( reassign ) { Let x= 2; Var y = 2; console.log(x); console.log(y);} console.log(x); console.log(y);} What is displayed when myFunction(true) is called?

A.
2 2 1 1
Answers
A.
2 2 1 1
B.
2 2 undefined undefined
Answers
B.
2 2 undefined undefined
C.
2 2 1 2
Answers
C.
2 2 1 2
D.
2 2 2 2
Answers
D.
2 2 2 2
Suggested answer: C
asked 23/09/2024
André Batista
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first