Is Javascript compiled or an interpreted language?

JavascriptCompiledInterpreted Language

Javascript Problem Overview


Can Javascript be called a pure interpreted language? Or does it also have some compiled flavor to it? Could someone guide at the reasons behind both the things whichever being true.

Javascript Solutions


Solution 1 - Javascript

Go and read the answers to this question

https://softwareengineering.stackexchange.com/questions/138521/is-javascript-interpreted-by-design

The answer I accepted is excellent and should help answer your question.

For me personally, I am somewhat cautious of the idea of calling a language interpreted or compiled. It's an implementation decision, not part of the language specification. If you want to talk about compiled or interpreted JavaScript, ask it in the context of an actual implementation of the language specification.

Solution 2 - Javascript

JavaScript is interpreted at runtime by the client browser. There is a tool called the Rhino JavaScript Compiler that supposedly compiles JavaScript into Java class files, though.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionnetempView Question on Stackoverflow
Solution 1 - JavascriptMatt EschView Answer on Stackoverflow
Solution 2 - JavascriptHellaMadView Answer on Stackoverflow