Loops in JavaScript

Flashcard
•
Computers
•
9th - 12th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Python

Flashcard
•
7th - 10th Grade
13 questions
Atomic Structure

Flashcard
•
10th Grade
10 questions
WHI.11 Asia

Flashcard
•
9th Grade
12 questions
Staff, Clefs, and Ledger Lines

Flashcard
•
6th - 12th Grade
9 questions
Graphing Linear Inequalities

Flashcard
•
9th - 12th Grade
12 questions
Standard Response Protocol WIN

Flashcard
•
KG - 12th Grade
12 questions
ROBOTICS (PRE-TEST)

Flashcard
•
7th - 12th Grade
15 questions
Algebra 2 Vocabulary

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade