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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
The Hobbit Chapter 1
Flashcard
•
9th - 10th Grade
14 questions
Les Grandes Grandes vacances: épisode 1
Flashcard
•
10th - 12th Grade
10 questions
Twelfth Night
Flashcard
•
10th Grade
10 questions
Улс төр
Flashcard
•
10th Grade
10 questions
Disney descendants flashcard
Flashcard
•
KG
11 questions
Unit 1 | Topic 2 | Key Terms - Flashcards
Flashcard
•
9th - 12th Grade
10 questions
The Big Bang Theory
Flashcard
•
10th - 12th Grade
6 questions
MCA (2005) Code of Practice
Flashcard
•
KG - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade