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
Post a Comment