luislikesgames12
luislikesgames12 luislikesgames12
  • 01-12-2020
  • Computers and Technology
contestada

What number will be output by the console.log command on line 5?
A. 10
B. 25
C. 30
D. 35

What number will be output by the consolelog command on line 5 A 10 B 25 C 30 D 35 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-12-2020

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

Answer Link

Otras preguntas

(20 points!!!) An implied meaning of a word is a(n)? A) Allusion B) Metaphor C) Denotation D) Connotation
which of the following options correctly describes the graph below?
Two numbers have an absolute value of 16. Which of the two numbers is greater than 12?
When setting a purpose for a text, how can you determine what kind of text it is?
[Precalculus] Find the value of sin(x/2):
if someone is a navist who is he or she against, Americans only american indians only eastern Europeans new immigrants
Please answer Correctly for brainly
How can you tell from a dot diagram how many covalent bonds can be formed in an element? A: By the number of protons
Lynn wants to serve hamburgers at her birthday party if hamburger buns are sold in packages of 8 and hamburger patties are sold packages of 6 what is the least
Write three numbers that are greater than 12,000 but less than 13,000