stupid question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil

    #1

    stupid question

    alert(function( ){return 'foo'}());

    responds with "foo".

    alert(function( ){return
    'foo'}());

    responds with "undefined" .

    Why?
  • Thomas 'PointedEars' Lahn

    #2
    Re: stupid question

    Phil wrote:
    alert(function( ){return 'foo'}());
    >
    responds with "foo".
    >
    alert(function( ){return
    'foo'}());
    >
    responds with "undefined" .
    >
    Why?
    Automatic semicolon insertion (ES3F, 7.9); RTFM.

    BTW, your From header is borken.


    PointedEars
    --
    var bugRiddenCrashP ronePieceOfJunk = (
    navigator.userA gent.indexOf('M SIE 5') != -1
    && navigator.userA gent.indexOf('M ac') != -1
    ) // Plone, register_functi on.js:16

    Comment

    Working...