subject
Computers and Technology, 04.07.2020 19:01 schwann

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.");
}1. 1 years, and 1 months
2. 1 year, and 1 month
3. 1 years
4. 1 year

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
To insert a column without using commands in any tabs, a user can -click and then click insert column.
Answers: 3
question
Computers and Technology, 22.06.2019 07:00
Idon understand these and need some ! ?
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
You know the right answer?
If totalMonths has a string value of "13", what does the code that follows display? var years = par...
Questions
question
Mathematics, 29.08.2019 19:00
Questions on the website: 13722360