Javascript I

Quiz
•
Other
•
University
•
Hard
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
Similar Resources on Wayground
35 questions
BPMN

Quiz
•
University
30 questions
JavaScript

Quiz
•
University
30 questions
AND-801 Quiz test

Quiz
•
KG - Professional Dev...
30 questions
Sociological Theories and Research

Quiz
•
9th Grade - University
30 questions
General Knowledge 2021

Quiz
•
10th Grade - University
35 questions
BLS CPR

Quiz
•
10th Grade - University
30 questions
Mobile App 1 (Quiiz 1 - Finals)

Quiz
•
University
30 questions
Mid 1 WT

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade