What keyword do you need to use to define a variable in JavaScript?
JavaScript and Graphics

Quiz
•
Other
•
12th Grade
•
Hard
Angel Ligon
Used 4+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
variable
var
int
x
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function do you need to call to ask the user of the program to enter text?
readLine
readln
readString
println
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To ask the user of the program for a number, which function should you use?
readLine
readFloat
readInt
Both readInt and readFloat are for numbers.
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code print to the screen?
println(2 + 2):4
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What symbol do you use to do division in JavaScript?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function do you need to call to get the width of the screen?
width()
getWidth()
screenWidth()
getScreenWidth()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?
var numApples == 20;
20 = numApples;
var numApples = 20;
var num apples = 20;
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Dersler ve Sifatlar (Classes and adjectives)

Quiz
•
7th - 12th Grade
17 questions
SÖZCÜK TÜRLERİ

Quiz
•
9th - 12th Grade
15 questions
JS 1

Quiz
•
12th Grade
20 questions
Saat kac? - Telling the time in Turkish

Quiz
•
KG - Professional Dev...
15 questions
Computer Hardware

Quiz
•
11th - 12th Grade
15 questions
Users of Accounting Information

Quiz
•
12th Grade
15 questions
Günler, Aylar ve Mevsimler

Quiz
•
7th - 12th Grade
20 questions
Java Primitive Practice

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University