
JavaScript Basics & CodeHS Review
Authored by PATRICIA LAMMERT
Computers
10th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct function to print text to the screen in JavaScript?
write
console.log
log
console.print
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a variable in JavaScript?
variable
let
int
x
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a properly styled and valid JavaScript variable name?
user_age
UserAge
userAge
User age
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? console.log(2 + 2);
2 + 2
4
22
Nothing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for multiplication in JavaScript?
x
*
#
X
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for division in JavaScript?
%
/
//
*
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function asks the user for text input?
readLine
readln
text
console.log
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?