I am looking for a JavaScript equivalent of the Python:
pass
statement that does not run the function of the ...
notation?
Is the
I know this is a very old answer but i guess that is also possible to do something like this.
You can declare a constant that contains a string.
const pass = 'pass';
if (condition) {
pass
} else {
console.log('hi!')
}
However note also that this may be a better option.
if (condition) {}
else {
console.log('cool!')
}