Module-3 Flashcards
What is Array.prototype.filter useful for?
Useful for filtering arrays.
What is Array.prototype.map useful for?
Useful for transforming an array.
What is Array.prototype.reduce useful for?
Useful for returning a single value from an array.
What is “syntactic sugar”?
A version of code that is more readable.
What is the typeof an ES6 class?
A function.
What is “refactoring”?
Restructuring code to be more efficient and readable but not changing the output.
What is a webpack?
Webpack is a tool that bundles JavaScript applications, and supports any module format aside from ESM.
How do you add a devDependency to a package?
From the root directory in the command line, you run npm install with the package-name and the “–save-dev” flag
What is an npm script?
An npm script bundles commands together, and are typically commands, or a string of commands that would usually be entered in the command line to have an application do something.
How do you execute Webpack with npm run?
With npm run script-name.
What is Babel?
Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into compatible versions of JavaScript.
What is a plug-in?
A software component that adds a specific feature to an existing program.
What is a webpack loader?
Loaders are transformations that are applied to source code of a module, and provide a way to handle front-end build steps.
How can you make Babel and webpack work together?
Install the Babel loader then configure the webpack.js file.
What is JSX?
JSX is a React extension to the JavaScript language syntax.