Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26801

Re: Definition of a script in JavaScript

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Definition of a script in JavaScript
Date 2015-02-04 22:39 +0000
Organization A noiseless patient Spider
Message-ID <mau73u$dd9$1@dont-email.me> (permalink)
References <JavaScript-20150204202621@ram.dialup.fu-berlin.de>

Show all headers | View raw


On Wed, 04 Feb 2015 19:36:08 +0000, Stefan Ram wrote:

>   Where does the MDN give the syntax for what one can write in the file
>   »javascript.js«?

Perhaps this is the page you are looking for?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/
Lexical_grammar

Or maybe this one is:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/
Statements

Also see: http://www.w3.org/standards/webdesign/script.html

"What is scripting?

A script is program code that doesn’t need pre-processing (e.g. 
compiling) before being run. In the context of a Web browser, scripting 
usually refers to program code written in JavaScript that is executed by 
the browser when a page is downloaded, or in response to an event 
triggered by the user."

In the normal sense, "program code" is generally expected to conform to 
some syntax specified for the computer language it is written in. In the 
case of Javascript, to paraphrase W3C:

"The most common scripting language ECMAscript (more widely known as 
JavaScript) which is developed by Ecma."

So whether you like it or not, your journey probably ends at the 
ECMAScript language specification.

http://www.ecma-international.org/publications/standards/Ecma-262.htm

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Definition of a script in JavaScript Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-04 22:39 +0000
  Re: Definition of a script in JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-05 17:40 +0100
    Re: Definition of a script in JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-05 17:47 +0100

csiph-web