ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 93 - Certified JavaScript Developer I discussion

Report
Export

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

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';
Answers
A.
01 let monthName ='July';
B.
02 let year =2019;
Answers
B.
02 let year =2019;
C.
02 const year = 2020;
Answers
C.
02 const year = 2020;
D.
03 if (year == 2019) {
Answers
D.
03 if (year == 2019) {
Suggested answer: A
asked 23/09/2024
chengbin lin
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first