Good Morning

Can you please help with some code for a function I need.

The function takes two numbers as arguments and basically returns the difference between them. However I always need a positive number to be returned so the fucntion needs to take the smaller number from the larger one and this needs to be worked out within the function.

New to this so any help would be appreciated.

Thanks

JS