Konverter minus
function convertToMinus(num){
return 0 - num;
}
var number = 322;
$(document).ready(function ()
{
alert(number + " converted to minus is " + convertToMinus(number));
number = 839;
setTimeout(function() {
alert(number + " converted to minus is " + convertToMinus(number));
console.log(convertToMinus(number));
}, 5000);
});
Hungry Hoopoe