
Loops in JavaScript
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

13 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Goal = Create a loop that turns as long as i is less than 10. What should replace ⭐? Options: >, <, >=, <=
Back
<
Answer explanation
Inequalities in JS
== is equal to
> is greater than
>= is greater than or equal to
< is less than
<= is less than or equal to
!= is not equal to
! not
2.
FLASHCARD QUESTION
Front
What is a value for ⭐ that would prevent the loop from ever running?
Back
10
Answer explanation
Loop ONLY while i is less than 10
3.
FLASHCARD QUESTION
Front
What JavaScript code matches this statement: Their name is Jacob and they are less than 15 years old.? Options: if(name = "Jacob" && age < 15), if(name == "Jacob" && age < 15), if(name == "Jacob" || age < 15), if("name" == "Jacob" && age < 15)
Back
if(name == "Jacob" && age < 15)
Answer explanation
~~~Logical Operators~~~
&& and
|| or
! not
~~~Inequalities in JS~~~
== is equal to
> is greater than
>= is greater than or equal to
< is less than
<= is less than or equal to
!= is not equal to
4.
FLASHCARD QUESTION
Front
What is a value for ⭐ that would prevent the loop from ever running?
Back
10
Answer explanation
Loops ONLY while i is greater than 10
5.
FLASHCARD QUESTION
Front
Goal = Create a loop that turns as long as i is greater than 10. What should replace ⭐? Options: >, <, >=, <=
Back
>
Answer explanation
~~~Inequalities in JS~~~
== is equal to
> is greater than
>= is greater than or equal to
< is less than
<= is less than or equal to
!= is not equal to
6.
FLASHCARD QUESTION
Front
Greater than or equal to
Back
>=
Answer explanation
~~~Inequalities in JS~~~
== is equal to
> is greater than
>= is greater than or equal to
< is less than
<= is less than or equal to
!= is not equal to
7.
FLASHCARD QUESTION
Front
Logical Operators - What is the symbol below?
&&
Back
And
Answer explanation
~~~Logical Operators~~~
&& and
|| or
! not
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?