
JavaScript Variables and Data Types

Quiz
•
Other
•
10th Grade
•
Medium
Chandra Sekhar
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of variables in JavaScript?
Variables in JavaScript are unnecessary and should be avoided.
Variables in JavaScript are used to confuse programmers.
The purpose of variables in JavaScript is to make the code more complicated.
The purpose of variables in JavaScript is to store and manipulate data.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in JavaScript?
function
var
const
let
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different data types supported by JavaScript?
integer, float, array, function, character, boolean, object
text, decimal, list, method, character, true, false
word, digit, list, function, character, true, false
string, number, boolean, null, undefined, object, symbol
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a string variable in JavaScript?
var myString = 'Hello';
let myString = 'Hello';
const myString = 'Hello';
var myString = 'Hello World';
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between null and undefined in JavaScript?
null is a value that is automatically assigned to variables that have not been assigned a value, while undefined represents intentional absence of any object value
null is used to represent a value that is unknown or has not been set, while undefined is used to represent a variable that has been declared but has not been assigned a value
null is a value that is automatically assigned to variables that have not been assigned a value, while undefined is used to represent a value that is unknown or has not been set
null represents intentional absence of any object value, while undefined is automatically assigned to variables that have not been assigned a value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a number variable in JavaScript?
let num = 10;
var num = '10';
var num = 10;
const num = 10;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of adding a number and a string in JavaScript?
The result is an error.
The result is a number.
The result is a boolean.
The result is a string concatenation.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
module6

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

Quiz
•
1st Grade - University
10 questions
Q3 MODULE 6

Quiz
•
10th Grade
15 questions
Interfaces Quiz

Quiz
•
10th Grade
13 questions
CSP Unit 5 Assessment 2 review (code.org)

Quiz
•
9th - 12th Grade
10 questions
Java Script

Quiz
•
10th - 12th Grade
8 questions
Java

Quiz
•
1st - 12th Grade
10 questions
tleq3

Quiz
•
10th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
18 questions
Characteristics of Living Things

Quiz
•
9th - 10th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade