Chapter 1 Flashcards
What is a transpiler and why do we use them?
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
What is a paradigm?
a mindset and approach to code structure
ie: Object Orientated, Procedural and Functional
Why might a console or REPL have a different outcome than what happens when the program is run?
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
What is a shim?
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)