Search Header Logo

JavaScript Variables and Data Types

Authored by Nadine Cameron

Computers

11th Grade

Used 12+ times

JavaScript Variables and Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type used to represent whole numbers in JavaScript?

Integer

Array

Boolean

String

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a basic data type in JavaScript?

Boolean

Object

String

Character

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you write JavaScript directly in a web browser?

Using the console tab in developer tools

Writing it in the URL bar

Creating a .js file and opening it

Sending it via email to yourself

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Boolean data type represent?

Numbers

Lists

True/False conditions

Text

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax is used to denote an array in JavaScript?

Angle brackets <>

Parentheses ()

Square brackets []

Curly braces {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used for decimal numbers in JavaScript?

Double

Decimal

Float

Integer

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is string concatenation in JavaScript?

Combining two arrays

Adding two numbers

Gluing two strings together

Converting a boolean to a string

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?