subject

The counter variable in the code below increments by 1 each time through the loop. what will the value of counter be after the following loop executes?

var counter = 0;
var n = 6;
while(n > 0){
n = n - 2;
counter = counter + 1;
}
console. log(counter)
4

a. 0
b. 1
c. 2
d. 3
e. 4

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 2
question
Computers and Technology, 23.06.2019 06:40
What are the three uses of a screw?
Answers: 2
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
You know the right answer?
The counter variable in the code below increments by 1 each time through the loop. what will the val...
Questions
question
World Languages, 13.06.2021 09:20
question
Mathematics, 13.06.2021 09:20
question
Spanish, 13.06.2021 09:20
question
Mathematics, 13.06.2021 09:20
question
Mathematics, 13.06.2021 09:20
Questions on the website: 13722363