100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

ADVANCED JAVASCRIPT EXAM QUESTIONS WITH CORRECT ANSWERS GRADED A+

Beoordeling
-
Verkocht
-
Pagina's
10
Cijfer
A+
Geüpload op
20-11-2025
Geschreven in
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

Meer zien Lees minder
Instelling
JAVASCRIPT
Vak
JAVASCRIPT

Voorbeeld van de inhoud

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?

Geschreven voor

Instelling
JAVASCRIPT
Vak
JAVASCRIPT

Documentinformatie

Geüpload op
20 november 2025
Aantal pagina's
10
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€9,59
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
joshuawesonga22 Liberty University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
41
Lid sinds
9 maanden
Aantal volgers
1
Documenten
11668
Laatst verkocht
1 dag geleden
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 beoordelingen

5
1
4
0
3
1
2
1
1
0

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen