How can I use the input value as a variable with two arguments?

Use console.log(inRe.value()); to see what you are getting. Also, please show how you are using this function in your code?

Kf