A block of code designed to perform a particular task.
It is executed when "something" invokes it (calls it).
What is a function?
This keyword was introduced in ES6 that will allow variables to reassign to different values.
What is a let keyword?
What is a const keyword?
These can operate arithmetic on values.
What are operators?
This operator can assign values to variables.
What is the assignment operator?
These refer to the collection of values which are associated with the JavaScript object
What are properties?
Here are examples of what JavaScript can "react" to
What are events?
This built-in array method will return a number that represents the number of values in an array of number of characters in a string.
What is the length method?
This method calls a function (a callback function) once for each array element.
What is forEach?
These variables can be accessed from anywhere in a JavaScript program.
What are global variables?
This determines the accessibility of variables, objects, and functions from different parts of the code.
What is scope?
This is JavaScript's default behavior of moving declarations to the top of their scope.
What is hoisting?
JavaScript allows for the nesting of functions and grants the inner function full access to all the variables and functions defined inside the outer function (and all other variables and functions that the outer function has access to).
What are closures?
This is a template for JavaScript objects.
This is an object but goes by a different name when created by a class.
What is an instance?
In JavaScript, this refers to an object dependent upon its context of usage. You typically see this usage in classes.
What is the 'this' keyword?
This method is invoke when an instance is a created.
What is a constructor?
These allow you to break up your code into separate files.
What are modules?
This is used to import bindings that are exported by another module.
What is the Javascript import statement?
This is a format for storing and transporting data.
This is often used when data is sent from a server to a web page.
What is JSON?
These are repeatable approaches for errors that arise sometimes when building JavaScript browser applications. They truly assist us in making our code more stable.
What are JavaScript design patterns?
This represents the eventual completion (or failure) of an asynchronous operation and its resulting value.
What is promise?
Functions that operate on other functions, either by taking them as arguments or by returning them.
What are higher order functions?
What will this print?
let x = 0;
logX(10);
function logX(x) {
logX2(x + 2);
}
function logX2(x) {
console.log(x + 2);
}
What is 14?
What will the log print?
let x = 0;
{
let x = 5;
{
let x = 10;
{
let x = 15;
{
let x = 20;
}
}
}
}
console.log(x);
What is 0?