How can I return an error from a function?

后端 未结 0 1446
轮回少年
轮回少年 2021-01-22 04:17

Let\'s say I have a function like this:

const getPlayer = (id) => {
  return players[id;]
}
//--------------------------
const client = getPlayer(9);


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