Computers and Technology

Critical Thinking Questions This lesson showed you the general form of the syntax for a for loop in JavaScript:
for (initialize counter; condition; update counter) {
code block;}

What does each part do, and why is it necessary?
Consider this JavaScript loop:
var new = 0;
for (i=3;i<=5;i++){
new=new+i;}

Explain what the loop does and what the result of executing it will be.
Most people are annoyed when they are asked to type in their password more than once. Can you think of a way to perform data verification that does not require users to type in their password twice?
A website asks the user to enter his or her date of birth with the month first and then the day of the month. Describe what you could do to prevent problems with the code if a user enters the information in the wrong order by placing the day of the month before the month.
Your classmate is frustrated because the code that was designed to add up her five quiz grades is not working properly. What change would you suggest to your classmate based on this code?
for (i=1;i<=5;i++){
sum=0
sum=sum+i;}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:30, gabriieldelacruz16
What “old fashioned” features of checking accounts is p2p replacing
Answers: 3
image
Computers and Technology, 22.06.2019 21:30, mima851
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
image
Computers and Technology, 23.06.2019 22:30, keel5468
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
image
Computers and Technology, 24.06.2019 08:00, nataliamontirl4230
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
Do you know the correct answer?
Critical Thinking Questions This lesson showed you the general form of the syntax for a for loop...

Questions in other subjects: