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

who was the most notorious gangster in chicago who led the bootlegging industry in the 1920 ?
Given p(x), find p(−2) by using synthetic substitution. p(x) = 6x3 − x2 + 29x − 46 p(−2) =
Barbara spent $144 on her birthday party for 18 guests . if the cost is at the same rate how many guests will there if she spends $176
Which item is NOT an asset? A. house B. car C. debit card D. cash
If sin Θ=-3/5 and the angle is in quadrant IV, what is cot Θ? -3/4 3/4 4/3 -4/3
Seventy eight students are separated into groups of 8 for a field trip. How many groups are there? The remaining students form a smaller group of how many stude
PLEASE ANSWER + BRAINLIEST!!!!
What is the value of x?
In a chart showing the population of various countries the label United States would be an example of an independent variable true or false
Review the passage from "Gumption." "Well, that made old man Oyster mad as hell. He said, 'Drat it, I'm a citizen! Is that what WPA is for--to bring me more dis