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 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
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, 18.05.2021 23:20
question
Mathematics, 18.05.2021 23:20