Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 28 Topic 3 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 28 Topic 3 Discussion

JavaScript-Developer-I Exam Topic 3 Question 28 Discussion:
Question #: 28
Topic #: 3

Refer to the code below:

01 x = 3.14;

02

03 function myFunction() {

04 ' use strict ' ;

05 y = x;

06 }

07

08 z = x;

09 myFunction();

Considering the implications of ' use strict ' on line 04, which three statements describe the execution of the code?


A.

' use strict ' is hoisted, so it has an effect on all lines.


B.

z is equal to 3.14.


C.

' use strict ' has an effect between line 04 and the end of the file.


D.

' use strict ' has an effect only on line 05.


E.

Line 05 throws an error.


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.