是Javascript编译还是解释语言? [英] Is Javascript compiled or an interpreted language?

查看:242
本文介绍了是Javascript编译还是解释语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Javascript可以被称为纯解释语言吗?或者它也有一些编译风味吗?有人可以指出两种情况背后的原因。

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.

推荐答案

去阅读这个问题的答案

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

我接受的答案非常好,应该有助于回答你的问题。

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

就我个人而言,我对调用或编译语言的想法有点谨慎。这是一个实现决策,不是语言规范的一部分。如果您想谈论编译或解释的JavaScript,请在​​语言规范的实际实现的上下文中询问它。

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.

这篇关于是Javascript编译还是解释语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆