node.js - app.delete raise syntax error on express with nodeclipse IDE -


does familiar error on nodeclipse ide ?

  app.delete('/delete', function(req, res) {   ....   }); 

syntax error on token ".", , expected

delete reserved word in javascript. in express, should use app.del(...). example, following code should work:

app.del('/delete', function(req, res) {    ... }); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -