JavaScript Basic 1

JavaScript Basic 1

8th Grade

10 Qs

quiz-placeholder

Similar activities

The CPU

The CPU

7th - 8th Grade

8 Qs

AI-1

AI-1

KG - University

13 Qs

Micro:bit assessment 1

Micro:bit assessment 1

7th - 8th Grade

10 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

Nintendo consoles

Nintendo consoles

KG - Professional Development

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

Computer Hardware

Computer Hardware

3rd - 11th Grade

10 Qs

CSE1 Unit 2 Assessment

CSE1 Unit 2 Assessment

6th - 8th Grade

15 Qs

JavaScript Basic 1

JavaScript Basic 1

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

Lan Le

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to declare a variable in JavaScript?

let

function

name

variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in JavaScript?

functionName(parameters) { // code here }

functionName(parameters) // function body

function functionName(parameters) { // function body }

functionName(parameters) { // function body }

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for creating conditional statements in JavaScript?

switch

loop

function

if

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the elements of an array in JavaScript?

arr[index]

arr.index

arr{index}

arr[element]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, what data type is used to store multiple values in a single variable?

boolean

number

array

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an object in JavaScript?

obj = [key: value];

variable obj = new Object();

createObject();

let obj = { key: value };

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 5 === '5' in JavaScript?

false

undefined

5

true

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?