Assalamualaikum!

I am Nizam

Student of Batch 07

This page created by using tailwindcss

Assalamualaikum! Welcome to Milstone-04 Module-19 Practice Section. I am Nizam, Student of Batch-07. This page created by using tailwindcss.

Module-19 Practice

Video 19-0 : Fundamentals of array

Video 19-1 : Variable array and conditionals revision

Video 19-2 : While loop, debug and understand while loop

Video 19-3 : Loop Example numbers, odd numbers, even numbers

Video 19-4 For loop, how for loop works, while vs for loop

Video 19-5 Run a loop for each element of an array

Video 19-6 (advanced) while and for loop break and continue

Video 19-7 (advanced) Understand for and while loop in a reverse way

Video 19-8 Subtraction, average and remainder practice Problem

Video 19-9 if-else and array related practice problems


QUIZ

Q1: Which of these expressions is NOT a valid way to add 1 to a variable in JavaScript?
Ans: X+

Q2: What is a variable (based on the knowledge we have so far)?
Ans: an element, or factor that is liable to vary or change

Q3: Which of these is not a type of loop in JavaScript?
Ans: Repeat

Q4: Which keyword will you write to a loop? var num = 0; ___?____(num < 10) {num ++ }
Ans: While

Q5:What will be the output of the following code? var i = 0; for (i=0; i<5; i++){}; console.log(i);>
Ans: 5

Q6: Fill in the blanks; so that the output will be 13 and 14. var marks = [ 13, 15, 14, 20, 18];
for(var i=0; i=15){ ?__;
} console.log(marks[i]); };
Ans: continue

Q7: Which loop would run 10 times?.
Ans: for(var i= 0; i < 10; i++){}


Q8: (be careful) What would be the output when you have var name = “false”; and then console.log(typeof name );
Ans: String

Q9: How many times does the following loop run?
var i = 5;
for (; i < 5; i++) { console.log(i);
}
Ans: 0 Times

THE END