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, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Does read theory have answers keys ?
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
Physics, 09.02.2021 19:00
question
Physics, 09.02.2021 19:00
question
Mathematics, 09.02.2021 19:00
question
Mathematics, 09.02.2021 19:00
question
Mathematics, 09.02.2021 19:00
Questions on the website: 13722362