Chapter 1 Flashcards

1
Q

What is a transpiler and why do we use them?

A

A transpiler is a program that converts code from one type (ES19) to another (ES6) in JS we use this for forward compatibility so that we can write our code in the most current version and not have to worry it won’t be able to run in older systems

ie Bable is a transpiler

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

What is a paradigm?

A

a mindset and approach to code structure

ie: Object Orientated, Procedural and Functional

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

Why might a console or REPL have a different outcome than what happens when the program is run?

A

Because the console is not a JS system, and things like console.log, alert, fetch etc are environmental behaviors and not true JS. The will not be found in the js spec

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

What is a shim?

A

a shim/polyfill is a placeholder for functionality that may or may not exist. If the logic does not exist in a version it patches it`
(babel does this for you for most things but otherwise, you can use ES-Shim)

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