Meaning of prepended plus sign in javascript
javascript, operators
Solution
This is basically a sneaky way of coercing the right-hand operand into a numeric value. E.g.,
> +"42"
42
Problem
what is the effect of the '+' in the following? ``` var result = jQuery.trim(this.html2val(this.getValueJelement()[0].innerHTML)); result = +result.replace(/[^\d\.-]/g, ''); ```