teste
123131
adasdsad
asdada
Define JavaScript.
A high-level, dynamic programming language primarily used for web development.
True or false: JavaScript is a compiled language.
FALSE
JavaScript is an interpreted language, executed by the browser.
What does DOM stand for?
Document Object Model, a programming interface for web documents.
Fill in the blank: JavaScript is often used to create _______ websites.
Interactive
What is a closure in JavaScript?
A function that retains access to its lexical scope, even when executed outside that scope.
Define callback function.
A function passed as an argument to another function, executed after some operation.
What does JSON stand for?
JavaScript Object Notation, a lightweight data interchange format.
True or false: var is block-scoped.
FALSE
Variables declared with var are function-scoped.
What is the purpose of ‘use strict’?
To enforce stricter parsing and error handling in JavaScript code.
Fill in the blank: Promises are used for _______ in JavaScript.
Asynchronous programming
Define hoisting.
JavaScript’s behavior of moving variable and function declarations to the top of their scope.
What is an event listener?
A function that waits for a specific event to occur on a target element.
True or false: let allows variable redeclaration.
FALSE
Variables declared with let cannot be redeclared in the same scope.
What is the this keyword?
A reference to the current object in context, depending on how a function is called.
Fill in the blank: Arrow functions do not have their own _______.
this context
Define async/await.
Syntax for handling asynchronous operations more easily, built on Promises.
What is a module in JavaScript?
A reusable piece of code that encapsulates functionality and can be imported/exported.
True or false: JavaScript supports multiple inheritance.
FALSE
JavaScript uses prototype-based inheritance.
What is localStorage?
A web storage feature that allows storing key-value pairs in a web browser.
Fill in the blank: Template literals are enclosed by _______.
Backticks (`)
Define event delegation.
A technique that allows a single event listener to manage events for multiple child elements.
What is a synchronous operation?
An operation that blocks execution until it completes.