JavaScript basic: Compute the sum of absolute differences of ...

JavaScript basic: Compute the sum of absolute differences of ...