user3293156 user3293156 - 1 year ago 66
Python Question

Is there a javascript equivalent for the python pass statement that does nothing?

I am looking for a javascript equivalent for the python

pass
statement that does nothing. Is there such a thing in javascript?

Answer Source

Python's pass mainly exists because in Python whitespace matters within a block. In Javascript, the equivalent would be putting nothing within the block, i.e. {}.