
JavaScript Basics Quiz

Quiz
•
Education
•
University
•
Medium
Rw8 Sodvadiya
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in JavaScript?
dim
declare
var
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write “Hello World” in an alert box?
alertBox("Hello World");
msgBox("Hello World");
alert("Hello World");
msg("Hello World");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output "Hi" to the browser console?
print("Hi")
console.print("Hi")
console.log("Hi")
log.console("Hi")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a correct JavaScript data type?
integer
decimal
object
real
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of `2 + "2"` in JavaScript?
4
22
Error
NaN
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method selects an element with a specific class?
getElementByClassName
getElementsByClassName
queryElementClass
classSelector
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add a click event to a button?
addEvent
onClick()
addEventListener()
clickEvent()
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Storage Classes in c

Quiz
•
University
20 questions
CS8592-OOAD-UNIT II- QUIZ III

Quiz
•
University
18 questions
Classroom Vocabulary in Spanish

Quiz
•
9th Grade - University
15 questions
Testing Development Quiz

Quiz
•
University
25 questions
VIRTUAL MEMORY QUIZEZZS

Quiz
•
University
20 questions
Grooming tools & equipment

Quiz
•
12th Grade - University
18 questions
Perancangan dan Pembinaan Ujian

Quiz
•
University
15 questions
ATCAS 3

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Education
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University