Javascript function to get the difference between two numbers February 20, 2023 by Tarik var difference = function (a, b) { return Math.abs(a - b); }