Gregor, a software developer, is developing a calendar application. He has to use several if conditional statements to ensure that the calendar displays the exact number of days present in each month of each year. He creates a dayCount array to keep track of the number of days in each month.
-Gregor wants to ensure February contains 29 days only in the year 2020 as it is a leap year.Which of the following should Gregor use to set the value in the dayCount array?
A) if (thisYear === 2020) {
DayCount[1] = 29;
}
B) if (dayCount=29)
{
2020;
}
C) if {
ThisYear = 2020;
DayCount[1] == 29;
}
D) if {
DayCount=29 && this year=2020;
}
Correct Answer:
Verified
Q61: Melissa, a computer science engineering student, is
Q62:
Identify the letter of the choice
Q63: JavaScript allows for the creation of _,in
Q64: A _ is an operator that compares
Q65: The collection of commands that is run
Q67: _ is a number associated with each
Q68: The _ statement stops processing the commands
Q69: Melissa, a computer science engineering student, is
Q70: A _ is a set of commands
Q71:
Identify the letter of the choice
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents