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
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
Similar Resources on Wayground
20 questions
HTML and CSS Concepts Assessment

Quiz
•
9th - 12th Grade
20 questions
Introduction to JavaScript

Quiz
•
9th - 12th Grade
20 questions
JavaScript Quiz

Quiz
•
11th Grade
15 questions
JavaScript

Quiz
•
9th Grade
20 questions
Review JavaScript

Quiz
•
11th Grade - University
20 questions
js_edu_wrap_up

Quiz
•
1st Grade - Professio...
18 questions
Coding District Test Prep Form I

Quiz
•
12th Grade
15 questions
JavaScript Basics

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade