Tech Tools Flashcards

1
Q

What is Webpack?

A

Is astatic module bundlerfor modern JavaScript applications.

It’s a tool that lets you bundle your JavaScript applications (supporting both ESM and CommonJS), and it can be extended to support many different assets such as images, fonts and stylesheets.

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

How do you add adevDependencyto a package?

A

npm install –save-dev

Or you can manually add it by editing the package.json file and adding an attribute called “devDependencies” that references the name andsemantic versionof each devDependency

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

What is an NPM script?

A

They are essentially an alias for a command line task that you want to run over and over

An NPM script are typically commands, or a string of commands, which would normally be entered at the command line in order to do something with your application.

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

What is a script (pertaining to computer science)?

A

A computerscriptis a list of commands that are executed by a certain program orscriptingengine.

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

How do you execute Webpack withnpm run?

A

Whatever it’s alias to.

i.e.&raquo_space;> Npm run build

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

What kind of modules can Webpack support?

A

ECMAScriptmodules. CommonJSmodules. AMDmodules

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

What is React?

A

Reactis a JavaScript library for building user interfaces.

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

What is a React element?

A

A React Element is what gets returned from components.

It’s anobjectthat virtually describes the DOM nodes that a component represents.

An element is a plain objectdescribinga component instance or DOM node and its desired properties.

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

How do you mount a React element to the DOM?

A

By using ReactDOM.render

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

What is Babel?

A

Babel is a JavaScript compiler

Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments.

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

What is a Plug-in?

A

Apluginis a software add-on that is installed on a program, enhancing its capabilities.

In computing, a plug-in is a software component that adds a specific feature to an existing computer program. When a program supports plug-ins, it enables customization.

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

What is a Webpack loader?

A

Loaders are transformations that are applied to the source code of a module. They allow you to pre-process files as youimportor “load” them. Thus, loaders are kind of like “tasks” in other build tools and provide a powerful way to handle front-end build steps. Loaders can transform files from a different language (like TypeScript) to JavaScript or load inline images as data URLs. Loaders even allow you to do things likeimportCSS files directly from your JavaScript modules!

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

How can you make Babel and Webpack work together?

A

By installing babel loader

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