I'm trying to let a user optionally pass in an options parameter to a function to override a default variable like this:
 let methodName = (options && options.methodName) || 'getSpaces';
However, when I put this line into my node CLI I get an error: ReferenceError: options is not defined.
How come I can't do this sort of thing?
 
     
     
    