Skip to content
Advertisement

javascript if solution if x is greater than any of the array numbers

need a little help please for a solution I have an array numbers and 2 vars. if x is greater than any of the array numbers,then y becomes the next number…

JavaScript

Advertisement

Answer

Use this function .

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement