Search Header Logo

Quizz for Javascript and typescript

Authored by Kyaw Htet San

Other

Professional Development

Used 6+ times

Quizz for Javascript and typescript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is a closure in JavaScript?

A way to lock variables in a function

A combination of a function and the lexical environment within which that function was declared

A method for closing browser windows

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes a Promise in JavaScript?

A mechanism for asynchronous programming

A callback function

A data type in JavaScript

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is event delegation in JavaScript?

The process of handling events in a nested manner

The assignment of a single event listener to a common ancestor of multiple elements

The use of event bubbling

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, what is the purpose of prototypes?

To create private variables

To implement inheritance

To store metadata about functions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does Async/Await differ from using Promises in JavaScript?

Async/Await is just syntax sugar for Promises

Async/Await allows for more readable asynchronous code

Promises are faster than Async/Await

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an ES6 feature?

var keyword

Arrow functions

document.write() method

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is hoisting in JavaScript?

A technique for organizing code in sections

The process of moving variable and function declarations to the top of their containing scope

A type of sorting algorithm

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?