subject

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;}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system.out.println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
An output peripheral interacts with or sends data to the computer provides information to the user from the computer receives data from the computer and sends it to a modem stores data processed by the computer
Answers: 1
question
Computers and Technology, 26.06.2019 07:00
Liza is preparing a memo to her employees that explains the new procedure for asking for time off and switching shifts with another employee. by making sure her memo is well-prepared, logical, and organized, liza has made sure her communication has the characteristics of 1. effective communication 2.ineffective communication 3.barriers to communication 4. workplace communication
Answers: 1
You know the right answer?
Critical Thinking Questions This lesson showed you the general form of the syntax for a for loop...
Questions
question
English, 22.01.2021 17:00
question
Mathematics, 22.01.2021 17:00
Questions on the website: 13722360