Javascript Basic
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
iqbal yunanto
Used 33+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a JavaScript variable?
A container that holds a value
A function that performs a task
A way to add styles to a website
A type of data
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How do you write a JavaScript string?
"Hello World!"
Hello World!
'Hello World!'
`Hello World!`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between = and == in JavaScript?
= assigns a value to a variable and == compares values
= compares values and == assigns a value to a variable
= and == are the same thing
= assigns a value to a variable and == assigns a value to a variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a JavaScript function?
create function myFunction() {}
new function myFunction() {}
myFunction() {}
function myFunction() {}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a JavaScript alert?
alert = "Hello World!";
alert {Hello World!};
alert("Hello World!");
alert "Hello World!";
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do you write a JavaScript comment?
# This is a comment
// This is a comment
/* This is a comment */
-- This is a comment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you change the background color of an HTML element using JavaScript?
element.color = "red";
element.background = "red";
element.style.backgroundColor = "red";
element.setBackground("red");
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Code Combat Curso Junior
Quiz
•
9th - 12th Grade
16 questions
C-Programming Basics
Quiz
•
12th Grade
21 questions
Y9 Creative iMedia RO81 Quiz Part 1
Quiz
•
9th Grade
20 questions
UH - 01 VII
Quiz
•
1st - 12th Grade
20 questions
Siskomdig Harian
Quiz
•
12th Grade
16 questions
JavaScript Learning Quiz 1
Quiz
•
12th Grade - University
20 questions
Yr 11 ICT quiz 1 Networks & Security
Quiz
•
10th - 11th Grade
20 questions
ตอบปัญหาCoding ม.ปลาย
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
