JavaScript Basics Quiz

JavaScript Basics Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Ice Breaker Challenge- Guess the Tool by Its Logo

Ice Breaker Challenge- Guess the Tool by Its Logo

Professional Development

10 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

UF0511 Hojas de cálculo.

UF0511 Hojas de cálculo.

Professional Development

20 Qs

História dos Smartphones

História dos Smartphones

Professional Development

10 Qs

Procesadores de texto (Docs de Drive y MS Word)

Procesadores de texto (Docs de Drive y MS Word)

Professional Development

13 Qs

DI (EM24) - Diseño de Perfiles (T5)

DI (EM24) - Diseño de Perfiles (T5)

University - Professional Development

20 Qs

SyO. Introducción a los Sistemas

SyO. Introducción a los Sistemas

Professional Development

17 Qs

JavaScript Basics Quiz

JavaScript Basics Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Anas Muhammed

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'let' keyword in JavaScript?

To declare a variable that is block scoped

To declare a variable that is globally scoped

To declare a constant variable

To declare a variable that can be re-assigned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

String

Object

Number

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'return' statement do in a function?

Invokes another function

Declares a variable

Returns a value to the caller

Ends the function execution

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression '2 + '7' in JavaScript?

27

Undefined

9

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about the 'this' keyword?

It always refers to the global object

It is always undefined

It refers to the object that is currently executing the function

It cannot be used in arrow functions

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a promise in JavaScript?

A way to handle synchronous tasks

A method to create variables

An object that represents the eventual completion of an asynchronous operation

A function that returns a value immediately

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a method to create a new element in the DOM?

document.getElementById()

document.removeChild()

document.createElement()

document.querySelector()

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?