Can you spot the duplication?
Jigar Gosar
23

Math.abs() already provides the required behaviour which we are trying to wrap using the decalaration

var absoluteValue = function(num) { … }

Reuse would be passing the Math.abs() behaviour .using short hand notation

var absoluteValue = ( Math.abs(num) );