Babel Flashcards

1
Q

What is Babel?

A

Babel is a js complier used to transform syntax. It is able to convert es6 and beyond’s code for es5 compatibility. Babel can also polyfill features that are missing from es5. Babel can convert JSX syntax into React compliant code.

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

What is a Plug-in?

A

A software component that adds a specific feature to an existing program.

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

What is a Webpack loader?

A

A webpack loader is able to transform code before it is imported/loaded.

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

How can you make Babel and Webpack work together?

A

Both babel and webpacks should be installed as devDependencies. The babel-loader must be present in the webpack.config.js file.

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