I occasionally want to test out a JS function from the console (in this case with adding a property to a function -- it can be done, want to test it out separately from where I would use it).

I've tried "require" from the console (which helped me fine some errors), but when I go to call the function, it can't be found.

Is there a way?

thanks,

Hank