Menu
Hello,
I am new to the forum and JavaScript. I am really hoping that someone on here will be able to help me. I am trying to code the following:
Find the smallest value in an array that is greater than a given number. So I need to be able to choose the number (lets say it 5) and the numbers in the array were [1, 6, 12, 14]. The lowest number would be 6. Anyone know what the code would be for something like this?
Regards,
Fred Williams