What is a JavaScript variable?
Javascript Basic

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
iqbal yunanto
Used 33+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
20 questions
Examen Teórico de JavaScript

Quiz
•
12th Grade
18 questions
MTA HTML CSS Session 1

Quiz
•
7th - 9th Grade
20 questions
WEBXII (PSASI 2024)

Quiz
•
12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
20 questions
PHP

Quiz
•
12th Grade
20 questions
Програмиране в интернет чрез JavaScript

Quiz
•
12th Grade
16 questions
ka react.js

Quiz
•
12th Grade
15 questions
JS SQL Reviewer

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade