Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 7 Topic 1 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 7 Topic 1 Discussion

JavaScript-Developer-I Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

A developer receives a comment from the Tech Lead that the code given below has

error:

const monthName = ‘July’;

const year = 2019;

if(year === 2019) {

monthName =‘June’;

}

Which line edit should be made to make this code run?


A.

01 let monthName =’July’;


B.

02 let year =2019;


C.

02 const year = 2020;


D.

03 if (year == 2019) {


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.