Jessica's JavaScriptmas Challenge

14. Maximal Adjacent Difference


Find the maximal difference of adjacent numbers in your array.

Example: The array [2, 9, 1, 0, -12] will result in 12, as the largest difference between any of the adjacent numbers is 12 (0 and -12).


Array of integers: []








Maximal adjacent difference: