javascript pass
exception, javascript, python
Solution
`pass` is a no-op in Python. You need it for empty blocks because
try:
# Something that throws exception
catch:
# continue other stuff
is a syntax error. In JavaScript you can just use an empty `catch` block.
try {
// Something that throws exception
}
catch (e) {}
Problem
Is there something along the lines of python 'pass' in javascript? I want to do the javascript equivalent of: ``` try: # Something that throws exception catch: pass ```