subject

If totalmonths has a string value of "13", what does the code that follows display? var years = parseint ( totalmonths / 12 ); var months = totalmonths % 12; if ( years == 0 ) {alert ( months + " months."); } else if ( months == 0 ) {alert ( years + " years"); } else {alert ( years + " years, and " + months + " months.");
}a) 1 years, and 1 monthsb) 1 year, and 1 monthc) 1 yearsd) 1 year

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Choice of type is influenced primarily by these two factors?
Answers: 3
question
Computers and Technology, 22.06.2019 00:50
Is one of the most injurious events that can happen to a person in a crash.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
Retype the statements, correcting the syntax errors. system.out.println("num: " + songnum); system.out.println(int songnum); system.out.println(songnum " songs"); note: these activities may test code with different test values. this activity will perform two tests: the first with songnum = 5, the second with songnum = 9. see how to use zybooks.
Answers: 1
You know the right answer?
If totalmonths has a string value of "13", what does the code that follows display? var years = pars...
Questions
question
Mathematics, 17.10.2020 22:01
question
Mathematics, 17.10.2020 22:01
question
Mathematics, 17.10.2020 22:01
Questions on the website: 13722363