You need to ensure the scope of a variable named j is limited to the block of a single function named foo(). Which JavaScript code fragment will accomplish this?
The declartion of the variable is wrong because var allows the variable to be accessed outside of its scope. It should be (let j=0)
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.98-375 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Jaymile_1409
2 years, 1 month ago