js difference between two numbers
snippet in javascript

js difference between two numbers

user1277

var difference = function (a, b) { return Math.abs(a - b); }