JavaScript Basic 1

JavaScript Basic 1

8th Grade

10 Qs

quiz-placeholder

Similar activities

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

Keycode Unit 1 vocabulary Review

Keycode Unit 1 vocabulary Review

6th - 8th Grade

10 Qs

Cryptography

Cryptography

6th Grade - University

15 Qs

Python - Year 8

Python - Year 8

3rd Grade - University

10 Qs

cyber security

cyber security

8th Grade

12 Qs

Spreadsheet & Presentation Applications

Spreadsheet & Presentation Applications

8th Grade

15 Qs

CODING QUIZZ

CODING QUIZZ

8th Grade

13 Qs

Thukable SC Assessment 2

Thukable SC Assessment 2

7th - 12th 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?