Exam JavaScript-Developer-I Topic 2 Question 140 Discussion
Actual exam question for Salesforce's JavaScript-Developer-I exam
Question #: 140
Topic #: 2
Question #: 140
Topic #: 2
Refer the code below.
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();
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
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
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
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).