How can i make an async await if else in nodejs?

后端 未结 0 387
借酒劲吻你
借酒劲吻你 2020-12-05 17:22

Hello I run an if else statement in nodejs

 if(req.body.type === undefined || req.body.id === undefined)
 {
        res.send(\'Invalid request\')
 }

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题