100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

ADVANCED JAVASCRIPT EXAM QUESTIONS WITH CORRECT ANSWERS GRADED A+

Puntuación
-
Vendido
-
Páginas
10
Grado
A+
Subido en
20-11-2025
Escrito en
2025/2026

ADVANCED JAVASCRIPT EXAM QUESTIONS WITH CORRECT ANSWERS GRADED A+ What is the term for where to look for things? - Answers scope What's the difference between a compiled and interpreted language? - Answers interpreter goes from top-to-bottom, where compiled languages go through multiple passes through code before execution. What's the smallest atomic unit of scope in JS? - Answers function scope What's one of the most important parts of the first compiler pass? - Answers finding declarations What's LHS and RHS? - Answers left-hand side (declaration) and right-hand side (assignment) What's another way to say LHS and RHS? - Answers target and source If you're in strict mode, and you assign a value to a variable that hasn't been declared through the first pass, what happens? - Answers It throws an error because it's not declared. What is the difference between undeclared and undefined? - Answers undeclared means that the variable has never been declared. undefined means he was declared, but he has empty value. undefined should be called uninitialized. In strict mode, what happens to LHS/RHS references? - Answers They both throw reference errors. How do you know if a function is a declaration or expression? - Answers If the 'function' word is the first word in the statement. In expressions, how do we normally see them? - Answers anonymous function If you try to add a named function to a function expression, where can it be referenced? - Answers only within itself When you use anonymous function expressions, what are the three pitfalls? - Answers 1. no way inside function to call yourself. recursion isn't possible. 2. don't play well in debugging. so give it a name. 3. it self documents code. makes code more readable. What are the two models of scope? - Answers lexical and dynamic scope What does lexical mean in 'lexical scope'? - Answers It refers to the parsing stage, or 'lexing', which means compile-time scope. What's a good way to look at lexical scoping? - Answers It's a building. You start on the bottom

Mostrar más Leer menos
Institución
JAVASCRIPT
Grado
JAVASCRIPT

Vista previa del contenido

ADVANCED JAVASCRIPT EXAM QUESTIONS WITH CORRECT ANSWERS GRADED A+

What is the term for where to look for things? - Answers scope

What's the difference between a compiled and interpreted language? - Answers interpreter goes
from top-to-bottom, where compiled languages go through multiple passes through code before
execution.

What's the smallest atomic unit of scope in JS? - Answers function scope

What's one of the most important parts of the first compiler pass? - Answers finding
declarations

What's LHS and RHS? - Answers left-hand side (declaration) and right-hand side (assignment)

What's another way to say LHS and RHS? - Answers target and source

If you're in strict mode, and you assign a value to a variable that hasn't been declared through
the first pass, what happens? - Answers It throws an error because it's not declared.

What is the difference between undeclared and undefined? - Answers undeclared means that
the variable has never been declared. undefined means he was declared, but he has empty value.
undefined should be called uninitialized.

In strict mode, what happens to LHS/RHS references? - Answers They both throw reference
errors.

How do you know if a function is a declaration or expression? - Answers If the 'function' word is
the first word in the statement.

In expressions, how do we normally see them? - Answers anonymous function

If you try to add a named function to a function expression, where can it be referenced? -
Answers only within itself

When you use anonymous function expressions, what are the three pitfalls? - Answers 1. no way
inside function to call yourself. recursion isn't possible.

2. don't play well in debugging. so give it a name.

3. it self documents code. makes code more readable.

What are the two models of scope? - Answers lexical and dynamic scope

What does lexical mean in 'lexical scope'? - Answers It refers to the parsing stage, or 'lexing',
which means compile-time scope.

What's a good way to look at lexical scoping? - Answers It's a building. You start on the bottom

, floor and keep climbing until you reach sky/global scope.

What's another way to look at lexical scope? - Answers nested bubbles

What's the point of an IIFE? - Answers to hide scope

How would the IIFE sound in the runtime anthropomorphic conversation? - Answers I have a
function expression. It's an immediate value. So we reference that and immediately execute it.
It's like an immediate assignment like var = "foo";

Is it good practice to name IIFE? - Answers yes

Why would you name your IIFE? - Answers avoid stack trace debugging searching for
anonymous functions

What keyword is going to allow for block scope? - Answers let

With 'let', does that mean we're always going to use it? - Answers no

What keyword is more flexible, var or let? - Answers var

What types of scoping rules does Javascript have? - Answers lexical scoping.

What are the different ways you can create a new scope? - Answers functions, catch blocks,
curly braces with let keyword

What's the difference between undeclared and undefined? - Answers undeclared means that the
variable hasn't been declared. undefined is a value that means currently void. undefined means
uninitialized.

What does 'hoisting' really mean? - Answers during compile-time, the declarations are handled
and created first.

When assigning one variable to another, then changing another, does the first assignment
change? - Answers yes

What gets hoisting to the top first? - Answers functions

What gets hoisted to the top second? - Answers variable declarations (LHS)

What gets hoisting to the top last? - Answers operations

Instead of thinking about 'hoisting', how should you think about JS code? - Answers as compile-
time code

What will the following output?

Escuela, estudio y materia

Institución
JAVASCRIPT
Grado
JAVASCRIPT

Información del documento

Subido en
20 de noviembre de 2025
Número de páginas
10
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$10.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
joshuawesonga22 Liberty University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
41
Miembro desde
9 meses
Número de seguidores
1
Documentos
11678
Última venta
1 día hace
Tutor Wes

Hi there! I'm Tutor Wes, a dedicated tutor with a passion for sharing knowledge and helping others succeed academically. All my notes are carefully organized, detailed, and easy to understand. Whether you're preparing for exams, catching up on lectures, or looking for clear summaries, you'll find useful study materials here. Let’s succeed together!

3.3

3 reseñas

5
1
4
0
3
1
2
1
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes