JavaScript Operators Flashcard

JavaScript Operators Flashcard

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

31 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is not a valid value for a boolean? True, False, Yes, The above are all valid

Back

Yes

2.

FLASHCARD QUESTION

Front

What symbol represents the or operator in JavaScript?

Back

||

3.

FLASHCARD QUESTION

Front

What symbol represents the and operator in JavaScript?

Back

&&

4.

FLASHCARD QUESTION

Front

After the following code runs, what is the value of isWeekend?
var isSaturday = true;
var isSunday = false;
var isWeekend = isSaturday || isSunday;

Back

true

5.

FLASHCARD QUESTION

Front

What is the proper operator for "not equals" in JavaScript?

Back

!=

6.

FLASHCARD QUESTION

Front

What is the proper way to compare if two values are equal in a boolean expression in JavaScript? Options: =, ==, EQUALS, is

Back

==

7.

FLASHCARD QUESTION

Front

How can we check if a variable num is even? Options: num.isEven() will be true, (num % 2 == 0) will be true, (num % 2 == 0) will be false, (num / 2 == 0) will be true

Back

(num % 2 == 0) will be true

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?