My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Compiler Vs Transpiler

Ruchi Goswami's photo
Ruchi Goswami
·Jan 12, 2022·

1 min read

Compiler Vs Transpiler

Web developers come across these terms often and therefore basic understanding of these is required.

Compiler

A compiler is a computer program which converts code written in one high-level language to code in low-level language or into machine code that computer understands. Examples: C, C++, Java

compiler.JPG

Transpiler

A transpiler converts the code from one higher level language to another higher level language. Example: Babel transpiles ES6 JavaScript code into ES5 JavaScript.

transpiler2.JPG