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
16 questions
ka react.js

Quiz
•
12th Grade
15 questions
JS SQL Reviewer

Quiz
•
10th Grade
20 questions
Examen Teórico de JavaScript

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

Quiz
•
7th - 9th Grade
20 questions
PHP

Quiz
•
12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
15 questions
JavaScript Basics

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

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University