title: Javascript : Syntax error on token "delete", StringLiteral?
body: <pre><code>    var TestFunction = function () {
  
          return {
             delete: function() { // line 1
                  // do something
              }
          };
      }
  </code></pre>
  
  <p>Getting below error on line 1 in eclipse</p>
  
  <pre><code>    Syntax error on token "delete", StringLiteral 
  </code></pre>
  
  <p>As i changed "delete" to "delete1" , error goes away . Is delete a reserved keyword ?</p>