Javascript I

Javascript I

University

33 Qs

quiz-placeholder

Similar activities

Amendments

Amendments

KG - University

30 Qs

HPKITCHEN Quiz No.1 Final Period

HPKITCHEN Quiz No.1 Final Period

University

35 Qs

PREPARATION OF INGREDIENTS

PREPARATION OF INGREDIENTS

University

28 Qs

revision quiz

revision quiz

University

34 Qs

STS 313_MIDTERM EXAM

STS 313_MIDTERM EXAM

University

30 Qs

Pokemon

Pokemon

KG - University

30 Qs

Sneakers

Sneakers

5th Grade - Professional Development

28 Qs

Javascript I

Javascript I

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Aymane Benhima

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

33 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What keyword is used to declare a variable in JavaScript?

let

var

const

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is hoisting in JavaScript?

It's a JavaScript engine's way of moving all variable declarations to the top of the function or global scope.

It's a way to make variables float in the air.

It's a form of error handling.

It's related to the event handling mechanism.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the key difference between using let and var to declare variables in JavaScript?

  • let variables have block scope, while var variables have function scope.

var variables have block scope, while let variables have function scope.

There is no difference between let and var in terms of scoping.

let variables are global, while var variables are local.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JavaScript method is used to add a new HTML element to the DOM?

appendNode()

createElement()

addHTML()

appendChild()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the typeof operator in JavaScript?

To check the type of a variable or expression.

To perform mathematical operations.

To create arrow functions.

To compare two values for equality.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JavaScript event occurs when a user clicks on an HTML element?

hover

load

click

submit

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a regular expression (RegEx) in JavaScript used for?

To format design pattern.

To create text.

To search for and manipulate patterns in strings.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?