
Data Types in JavaScript

Quiz
•
Computers
•
12th Grade
•
Medium
Spandana Spandana
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two main categories of data types in JavaScript?
primitive data types and reference data types
numeric data types and string data types
boolean data types and array data types
object data types and function data types
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can you name an example of a primitive data type in JavaScript?
object
string
boolean
number
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between primitive and non-primitive data types?
Primitive data types are more complex than non-primitive data types.
Non-primitive data types are not supported by programming languages.
Primitive data types include arrays, classes, and interfaces.
Primitive data types are basic data types directly supported by the programming language, while non-primitive data types are derived from primitive data types and include arrays, classes, interfaces, etc.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to represent numeric values in JavaScript?
string
number
array
boolean
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a string variable in JavaScript?
let myString = 'Hello World';
myString = 'Hello World';
const myString = 'Hello World';
var myString = 'Hello World';
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: Boolean data type in JavaScript can only have two values.
False
True
Sometimes
Maybe
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are some examples of primitive data types in JavaScript?
integer
float
string, number, boolean, null, undefined
character
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Latihan UPS2

Quiz
•
5th - 12th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
14 questions
AP CSA Variables and Operators

Quiz
•
9th - 12th Grade
16 questions
Javascript Basics

Quiz
•
9th - 12th Grade
13 questions
Week 8

Quiz
•
12th Grade
18 questions
AP Computer Science A Post Unit 2 Check

Quiz
•
10th Grade - University
13 questions
JavaScript Variables

Quiz
•
3rd Grade - University
15 questions
Computer Programming Nocti

Quiz
•
9th - 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
20 questions
Digital Citizenship

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

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

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

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade