I have jQuery code where +$(...)used in many places. The code does not work without part +when doing everything $(...).
I could not find any explanation using Google. I would appreciate any advice, if possible.
function calculate() {
var a = +$('#a').val();
var b = +$('#b').val();
var c = b * 108.40;
}
Mik_a source
share