I always use a semicolon for this:
switch variable
when 5 then ;
else do variable
This is because in javascript, a semicolon is a valid statement which also happens to do nothing.
Update: I just thought of another interesting way of doing this. You could define pass as a global variable and set it to undefined:
window.pass = undefined
switch variable
when 5 then pass
else do variable
The only thing you have to watch out for is using pass as a local variable or redefining the global pass variable. That would break your code.
If you use Google's closure compiler, you could annotate this variable so that it is a constant:
`/** @const */ var pass;`
But then it would have to go at the beginning of each file. You could write your own preprocessor to do that automatically, though.