
Introduction to JavaScript Quiz

Quiz
•
Other
•
11th Grade
•
Hard
Standards-aligned
Johnnie Rascoe
Used 10+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 15 pts
What is the correct syntax to output "Hello World" in JavaScript?
`print("Hello World")`
`console.log("Hello World")`
`echo "Hello World"`
`System.out.println("Hello World")`
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
1 min • 15 pts
Which of the following is a correct way to declare a variable in JavaScript?
`var myVar;`
`variable myVar;`
`v myVar;`
`declare myVar;`
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
1 min • 15 pts
What is the output of the following code? ```javascript var x = 5; var y = 10; console.log(x + y); ```
`15`
`510`
`undefined`
`NaN`
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
1 min • 15 pts
Which of the following is NOT a data type in JavaScript?
`String`
`Number`
`Boolean`
`Character`
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the value of `typeof null` in JavaScript?
`null`
`object`
`undefined`
`boolean`
Tags
DOK Level 1: Recall
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following is used to declare a constant in JavaScript?
`var`
`let`
`const`
`constant`
Tags
DOK Level 1: Recall
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What will be the output of the following code? ```javascript let a = 10; a = 20; console.log(a); ```
`10`
`20`
`undefined`
`Error`
Tags
DOK Level 1: Recall
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Repaso de temas: Sistemas

Quiz
•
10th Grade - University
17 questions
SÖZCÜK TÜRLERİ

Quiz
•
9th - 12th Grade
10 questions
Quis Web Program

Quiz
•
11th Grade
12 questions
Dersler ve Sifatlar (Classes and adjectives)

Quiz
•
7th - 12th Grade
11 questions
Cik daudz Tu zini par mentālo (garīgo) veselību?

Quiz
•
7th - 12th Grade
15 questions
Scratch Sprites Quiz

Quiz
•
KG - Professional Dev...
10 questions
WEB Dasar

Quiz
•
1st Grade - University
15 questions
HTML test

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University