JavaScript Operators Flashcard

JavaScript Operators Flashcard

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?