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

Is JavaScript a compiled language or an interpreted language?

Siddarthan Sarumathi Pandian's photo
Siddarthan Sarumathi Pandian
·Jan 26, 2018

Well, in the first place, MDN clearly says that JavaScript is an interpreted language (it also says JIT-compiled which I will address later in the article). Still there is a question that if JavaScript is really interpreted because of the following points.

  • If interpreted then how does hoisting takes place?
  • JIT (just-in-time compiler) makes code optimizations (also create compiled versions); interpreted languages can never do that.