A JavaScript function for computing the difference between two variables.