Senior Flashcards
(133 cards)
What is a code block? What are some examples of a code block?
A code block refers to code within curly brackets. i.e. for, if, function
What does block scope mean?
block scope means that the variable defined within a block will not be accessible from outside the block.
What is the scope of a variable declared with const or let?
block scope
What is the difference between let and const?
You can update let but you can’t update const
Why is it possible to .push( ) a new value into a const variable that points to an Array?
This happens because the constant is storing a reference to the array.
How should you decide on which type of declaration to use?
Ask yourself if you’re going to need to update that variable later.
What is the syntax for writing a template literal?
Hello my name is ${variable}.
What is “string interpolation”
the ability to substitute part of the string for the values of variables or expressions
What is destructuring, conceptually?
extracting data from arrays or objects
What is the syntax for Object destructuring?
let { property1: variable1, property2: variable2 } = object
What is the syntax for Array destructuring?
let [ x, y, z ] = array
How can you tell the difference between destructuring and creating Object / Array literals?
brackets on the left side
What is the syntax for defining an arrow function?
( ) => { }
When an arrow function’s body is left without curly braces, what changes in its functionality?
implicit returns
How is the value of this determined within an arrow function?
value of this is determined during the definition time whereas in a regular function, this is defined in call time
What is a CLI?
Command Line Interface
- processes commands to a computer in the form of lines of text
What is a GUI?
Graphical User Interface
- a form of user interface that allows users to interact with electronic devices through graphical icons
What is Node.js?
Node.js is a program that allows JavaScript to be run outside of a web browser. It is commonly used to build back ends for Web applications, command-line programs, or any kind of automation that developers wish to perform.
What can Node.js be used for?
back ends for Web applications, command-line programs, any kind of automation that developers wish to perform
What is a REPL?
Read-eval-print loop
- a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user.
When was Node.js created?
2009
What back end languages have you heard of?
JavaScript, PHP, Ruby, Python, Java, Go, Node JS
What is a computer process?
a running instance of a program
Why should a full stack Web developer know that computer processes exist?
back end stuff like client side, api, and databases