aliibrah3321 aliibrah3321
  • 29-07-2020
  • Computers and Technology
contestada

Assume userName equals "Tom" and userAge equals 22. What is displayed in a dialog box when the following statement is executed? alert(userAge + " \nis " + userName + "'s age.");

Respuesta :

frknkrtrn
frknkrtrn frknkrtrn
  • 02-08-2020

Answer:

22

is Tom's age.

Explanation:

Since userAge is initialized as 22, 22 will be displayed in a line. Then, since there is a "\n" which means go the new line, the program will display in the new line. is will be displayed. Since userName is initialized as Tom, Tom will be displayed. Then 's age. will be displayed in the same line.

Answer Link

Otras preguntas

solve 3 In x + In 5 = 7
In which of the following sentences do you find a verb phrase? A. The crowed roared as the bull charged. B. June was a collector of memorabilia. C. I believe
The perimeter of a rectangle is 20 feet and the foot-measure of each side is a whole number. How many rectangles with different shapes satisfy these conditions?
How Do most organism ensure continuation of life?
In the sentence what is the cause and effect Amy broke her arm whaen she fell out of the treehouse.
3/5 is the same as 3.5 Is he correct?
Given the points (0,2) and (2,4): find the slope of the line through these two points.
convert 156000 to percentage
how do you work this math problem? m+3/8=1/2
Which of the following was characteristic of the court of James I? a) gluttonous feasting b) hard drinking c) hunting d) financial heedlessness e) all of t