3

(Sorry if it is answered elsewhere)

I was reading ECMAScript 262 Specification (ECMAScript 5th Edition), and in 4.3.24 on function it says the following:

NOTE: In addition to its named properties, a function contains executable code and state that determine how it behaves when invoked. A functions code may or may not be written in ECMAScript.

Can someone point out or explain what does it mean that function can be written not in ECMAScript?

Thanks a lot in advance!

john-raymon
  • 306
  • 1
  • 7
  • 20
Plyto
  • 741
  • 1
  • 9
  • 18
  • Simplest example: If you are trying to show the content of native functions (i.e. functions defined by the specification), you will see something like `function parseInt() { [native code] }`. Such a function is probably directly implemented in C. – Felix Kling Jun 01 '13 at 22:39

1 Answers1

2

ECMAScript is a standard that is used in other languages aside from JavaScript such as JScript (Only supported in Internet Explorer, I think?) or ActionScript (Flash).

This statement means you can simply write other syntax in a function other than what is defined in ECMAScript.

Marc Greenstock
  • 11,278
  • 4
  • 30
  • 54