Question: Which statement about the following JavaScript code is true? let greeting = Happy birthday!; if ( ageAtBirthday < 6 ) { greeting + =

Which statement about the following JavaScript code is true?
let greeting = "Happy birthday!";
if (ageAtBirthday <6){
greeting +=" You are a cute little kid.";
} else if (ageAtBirthday <40){
greeting +=" Have lots of fun!";
} else if (ageAtBirthday ===16){
greeting +=" You are old enough to drive.";
} else {
greeting +=" You are over the hill!"
;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!