Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

minus converter



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);
	   
});
Source by jseditor.io #
 
PREVIOUS NEXT
Tagged: #converter
ADD COMMENT
Topic
Name
1+6 =