Javascript I

Javascript I

University

33 Qs

quiz-placeholder

Similar activities

Mobile App 1 (Quiiz 1 - Finals)

Mobile App 1 (Quiiz 1 - Finals)

University

30 Qs

BPMN

BPMN

University

35 Qs

JavaScript

JavaScript

University

30 Qs

Test 1.01

Test 1.01

9th Grade - University

34 Qs

Game Design and Development

Game Design and Development

University

38 Qs

NR44 W6 Review

NR44 W6 Review

University

29 Qs

AND-801 Quiz test

AND-801 Quiz test

KG - Professional Development

30 Qs

THC 227- Quality Service Mngt. in Tourism&Hospitality BSTM2A

THC 227- Quality Service Mngt. in Tourism&Hospitality BSTM2A

University

33 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?