This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Instructions: | |
Submit a solution to the following challenge: | |
Given an array of integers, find the smallest difference between any two elements of the array. For example: | |
var findSmallestDifference = function(arr) { | |
// Your code goes here | |
}; | |
var result = findSmallestDifference([100, 500, 300, 1000, -200, 990]); |
NewerOlder