Hi I'm having a bit of trouble writing some logic with javascript Given an array (arr1) and test value (test)
arr1 = [5, 12, 19, 27]
test =15
Return a value of 3 for test=15, where test<5 = 1, 5< test >12=2, etc. Test can be any integer between 1 and 31 inclusive.
Thanks!