What number will be output by the console.log command on line 5?
1 answer:
Answer:
The output is 35
Explanation:
Required
Determine the output on line 5
We start by analysing the program line by line.
On line 1: kit = 20
On line 2: roo = 10
On line 3: kit = kit + 5
Substitute 20 for kit.
So, we have
kit = 20 + 5
kit = 25
On line 4:
roo = kit + roo
Substitute values for kit and too
roo = 25 + 10
roo = 35
On line 5: Output roo
So, 35 is displayed as an output
You might be interested in
Answer:
boolean
Explanation:
while loops test to see if something is true or false to know when to continue the loop
B. When you copy text it remains in its original location and places it on the clipboard. Cutting text removes it from its original location and places it on the clipboard
Answer:
running in the 90 s intensifies
Explanation:
Answer:
I believe "..." means that you need to go further in depth with your writing.
Diversity of their audiences