Okay so there’s a lot of similar questions here but none that actually address this. What if I want to save the default parameters of a function on a separated object, in a separated file and then I want the function to use this default parameters only if not specified when calling it? Example: And then in another file: What
Tag: default-parameters
Javascrip default parameter ReferenceError: param is not defined
I have a function defined to fetch some data. I set default parameters like this: I import this function in my component and use it like so: It works without setting limit and offset, but when I try to pass new values for offset and limit, I get an Unhandled Runtime Error ReferenceError: limit/offset is not defined. Am I missing