Is there a JavaScript equivalent of the Python pass statement that does nothing?

前端 未结 9 669
感情败类
感情败类 2021-02-06 20:02

I am looking for a JavaScript equivalent of the Python:

pass statement that does not run the function of the ... notation?

Is the

9条回答
  •  长发绾君心
    2021-02-06 20:41

    I've found that I get an error with empty braces, instead I put a semicolon in there, basically the same thing:

    try { //something; } catch (err) { ; }
    

提交回复
热议问题