The Missing Introduction to JavaScript Flashcards

1
Q

Why is JavaScript considered an Interpreted language?

A

JavaScript is considered an Interpreted language because it does not need to be compiled to be executed. Interpreted languages are translated to machine code upon execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is JavaScript considered a Multi-paradigm language?

A

JavaScript is considered a Multi-paradigm language because it supports multiple styles of coding, including:
* Imperative
* Procedural
* Object-oriented
* Prototypal inheritance, and
* Functional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

At a high level, what is ECMAScript?

A

ECMAScript is a specification, or body of standards, that JavaScript conforms to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is ES5?

A

ES5 is short for ECMAScript 5, and is the 2009 release version of ECMAScript standards, the latest version that is fully supported in all modern browsers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Babel?

A

Babel is a transpiler that compiles ES2015 (aka ES6) JavaScript into ES5 JavaScript to ensure full support across all modern browsers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a JavaScript Engine?

A

A JavaScript Engine is the software that actually runs JavaScript code.

Whereas traditionally JavaScript engines would interpret JS code, many modern JS Engines translate JS code into machine code, such as the Google Chrome V8 Engine, which uses a Just-In-Time Compiler (aka JIT) to run code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

At a high level, what is Node.js?

A

Node.js essentially moved Chrome’s V8 engine outside of the browser, allowign it to run on other platforms. This allows us to write JS on both the front-end and back-end of an application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

At a high level, what is the Document-Object-Model?

A

The Document-Object-Model (aka the DOM) is an API for HTML and XML documents which provides us a structural representation of the document so that we can interact with it via JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Packages and what is Package management?

A

Packages (aka Modules) are distinct projects containing specific functionality that can be imported into other code bases to implement that functionality. A Package manager helps us manage the packages we want to use in our project.

NPM is the most popular package manager for JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Local HTTP server?

A

A Local HTTP server allows developers to serve code locally and includes services such as live-reload (i.e.compilation upon file save), and allows us to make HTTP requests to a server.

Node.js is what allows us to run a local development server with JS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Webpack?

A

Webpack is a module bundler that combines our JavaScript code and dependencies together into a single file.

It also handles advanced techniques such as code splitting (aka lazy loading).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Linting?

A

Linting refers to the process of analyzing code on the fly to pick up potential errors.

ESLint is the most popular linter used for JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a package.json file?

A

A package.json file is a file that lists our packages and the versions we would like to install.

Packages are installed by running the CLI command npm install <dependency name>.

The CLI command npm init creates the package.json file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the **node_modules** folder?

A

The node_modules folder is created when we install our dependencies with the CLI command npm install, and is where downloaded packages are saved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly