Exam JavaScript-Developer-I Topic 2 Question 140 Discussion

Actual exam question for Salesforce's JavaScript-Developer-I exam
Question #: 140
Topic #: 2
Refer the code below.
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();

Suggested Answer:

See the Answer below in explanation:
Explanation
Z is equal to 3.14
Use strict has effect only on line 5.
Line 5 throws an error

by Rachel at Aug 12, 2026, 03:04 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어