本文是关于JavaScript的简介,尝试着翻译了下,不足之处望多多包涵。
JavaScript
JavaScript,作为脚本语言被大家熟知,是一个基于原型、面向对象、动态的、弱类型,有最优函数的脚本语言。因为其封装性、支持高阶函数,它和Scheme、OCaml一样,是一种函数编程语言。
JavaScrip符合脚本语言标准,主要被用在客户端JavaScript的形式,做为浏览器的一部分,用于增强用户界面和动态的效果。可以用来编程访问主机环境的计算对象。
JavaScript用于网页之外的应用也是有很大意义的-例如在PDF文件,site-specific浏览器和桌面组件。依赖更新更快的JavaScript VMs和框架(尤其是NOde.js),增加了JavaScript作为服务器端app的流行。
JavaScript的语法受C语言的影响,JavaScript的许多名称和命名规则继承于Java,但是两种语言却截然不同,有着不同的语义。JavaScript关键设计原则是取自Self和Scheme的程序设计语言。
原文:
JavaScript
JavaScript, also known as ECMAScript,is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language like Scheme and OCaml because it has closures and supports higher-order functions.
JavaScript is an implementation of the ECMAScript language standard and is primarily used in the form of client-side JavaScript, implemented as part of a web browser in order to provide enhanced user interfaces and dynamic websites. This enables programmatic access to computational objects within a host environment.
JavaScript's use in applications outside web pages—for example in PDF documents, site-specific browsers and desktop widgets—is also significant. Newer and faster JavaScript VMs and frameworks built upon them (notably Node.js) have also increased the popularity of JavaScript for server-side web apps.
JavaScript uses syntax influenced by that of C. JavaScript copies many names and naming conventions from Java, but the two languages are otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming languages.
JavaScript