answers 100% 2025
Who created JavaScript? - Brendan Eich in 1995
What is hoisting? - Hoisting is the process of variable and function declarations being
'hoisted' or raised to the top of the containing scope before file execution.
When are JavaScript files executed? - On page load, after the HTML & CSS is read
Do all statements need to end with a semicolon? - No, but semicolon line termination is
a good practice for code readability
Are JavaScript statements executed in sequential order? - By default, yes
What is a JavaScript keyword? - A protected keyword is a word/term in JavaScript that
has a predefined meaning that cannot be used as a local identifier
What JS feature is 1 + 2 == 3 ? console.log("Correct Math") : console.log("Incorrect
Math") ? - Ternary (conditional) operator
Is a primitive data type an object in Javascript? - No it is not, but once declared and
assigned, Javascript will perform type coercion and wrap many types of primitive data in
a corresponding object allowing you to use methods on them and manipulate them as if
they were an object.
What is optional chaining? - Optional chaining is the ability to try to return a property on
an object that may or may not exist. In the case that it does not exist, it will return
"undefined" instead of throwing an error.
What are the points of access in a URL when using an API called? - Endpoints
How is the data structured inside of an object? - It's structured into key value pairs,
where the key is the information used to access a particular value.
What is a Promise? - A Promise is an object that attempts to perform an action. If it's
unsuccessful, it will invoke a "reject" function, otherwise it will invoke a "resolve" function
and return the succesful result's value.
What is the most common modern way to pull data from an API on the internet in
Javascript? - Using the fetch method
A ternary operator is alternative syntax for which other operator in Javascript? - If/Else