var price=100; var i=11; var displayprice; displayprice = price + 'i'; // this will result '100i', since the 'i' is considered as a string. displayprice = price + i; // this results 111, since both are of int type
displayprice = price + eval('i'); // 111
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)