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
Evaluación Parcial Laboratorio 4to. BACO

Quiz
•
10th Grade
21 questions
Ch15 - Multimedia Authoring

Quiz
•
12th Grade
15 questions
JavaScript basics

Quiz
•
8th Grade - University
18 questions
Introducere în JS

Quiz
•
12th Grade - University
15 questions
Java Level 1 - A

Quiz
•
12th Grade
25 questions
Python for Absolute Beginners

Quiz
•
8th - 12th Grade
16 questions
Avaliação JavaScript

Quiz
•
11th Grade
25 questions
HTML, CSS & JS

Quiz
•
11th - 12th Grade
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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade