File talk:Javascript icon.svg

Latest comment: 11 years ago by OnesimusUnbound in topic No semicolon

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