Skip to content

Files

Latest commit

 

History

History
15 lines (11 loc) · 581 Bytes

Compiler vs Transpiler.md

File metadata and controls

15 lines (11 loc) · 581 Bytes

Compiler vs Transpiler

  • Compiler:

    • Source Code (Human readable code) ===>
    • Compiler ===> target code (machine runnable code) (=lower level code language).
    • Compiler changes the code language level of "abstraction".
  • Transpiler:

    • Source Code ===>

    • Transpiler ===> target code (same level code lnguage).

    • Transpiler does NOT change code language level of "abstraction"

    • Example: Transpilers (ex.Babel) to convert ES6 to ES5 code (=to run on older browsers that don't support ES6).