Notifications
Clear all

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

1 Posts
1 Users
0 Likes
145 Views
 Chas
(@heddinschas)
Posts: 712
Noble Member
Topic starter
 

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) {

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 13/02/2023 2:30 am

Latest Salesforce JavaScript Developer I Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: