Javascript I

Javascript I

University

33 Qs

quiz-placeholder

Similar activities

Test 1.01

Test 1.01

9th Grade - University

34 Qs

MACRO QUIZ 2

MACRO QUIZ 2

University

31 Qs

Quiz 1 - GBS - Dubai - Introduction to construction management

Quiz 1 - GBS - Dubai - Introduction to construction management

University

31 Qs

C# Skill Review

C# Skill Review

12th Grade - Professional Development

32 Qs

DanTDM (2018)

DanTDM (2018)

KG - Professional Development

30 Qs

Visual Basic

Visual Basic

University

30 Qs

SKEE1103 CT#11a: Pointers & Arrays

SKEE1103 CT#11a: Pointers & Arrays

University

29 Qs

Pemrograman Visual (TI 2D)

Pemrograman Visual (TI 2D)

University

30 Qs

Javascript I

Javascript I

Assessment

Quiz

Other

University

Hard

Created by

Aymane Benhima

Used 4+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?