Wednesday, 7 June 2017

Error with catch(function(reason)) on node.js

When I run the below code, I get a error which says expected identifier on the line with catch(function(reason))

user1.addActivity(activity)
   .then(function(data) { /* on success */ })
   .catch(function(reason) { /* on failure */ });



via Davidson Otobo

No comments:

Post a Comment