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 07:30
An endless cycle of creation and response on the internet is called
Answers: 1
question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
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
Mathematics, 18.11.2020 17:30
question
Mathematics, 18.11.2020 17:30
Questions on the website: 13722360