Jump to content

File talk:Javascript icon.svg

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by OnesimusUnbound (talk | contribs) at 07:37, 29 October 2012 (No semicolon). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

No semicolon

[edit]

Sorry for being pendantic, but the code is missing a semicolon at the end of the function declaration.

String.protoype.trim =
  function ()
  {
    return this
        .replace (/^\s+/,"")
        .replace (/\s+$/,"");
  } // missing semicolon

OnesimusUnbound (talk) 07:37, 29 October 2012 (UTC)[reply]