How to solve the problem ???

HTML Code:
var bidincrement1= document.getElementById('bidincrement').value;
var item_bid_amount2=document.getElementById('item_bid_amount').value;
var bidincrement2=bidincrement1  +  item_bid_amount2;
if
bidincrement1=52
item_bid_amount2=45

I get 5245