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