
JavaScript Basics Quiz

Quiz
•
Other
•
University
•
Easy
Sharfuddin Hyder
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a JavaScript variable?
variable x;
v x;
var x;
let = x;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a JavaScript data type?
String
Boolean
Float
Undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write "Hello, World!" in an alert box?
alert("Hello, World!");
msgBox("Hello, World!");
msg("Hello, World!");
alertBox("Hello, World!");
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to assign a value to a variable?
=
==
===
=>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a single-line comment in JavaScript?
<!-- This is a comment -->
// This is a comment
/* This is a comment */
** This is a comment **
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will console.log(typeof []) output?
array
object
list
undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a function in JavaScript?
function = myFunction() {}
function myFunction() {}
create function myFunction() {}
def myFunction() {}
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Introduction to Python Programming Quiz 9E

Quiz
•
10th Grade - University
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
c set 3

Quiz
•
University
10 questions
WEB Dasar

Quiz
•
1st Grade - University
10 questions
Recordando JavaScript

Quiz
•
University
10 questions
PYTHON BASICS

Quiz
•
University
10 questions
Test de JavaScript

Quiz
•
University
12 questions
Brainy Bites: Python

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade