why do you want to set size of array? these exsercise ask you to find biggest and smallest number in alredy existing array. these exsercies is test of function knowledge but can be done by loops.
hi i try to solve these with javascript but it gives me error:
a was [1,2,2], b was [2]: expected [ 1, 2 ] to deeply equal [ 1 ]
but when i check values console.log(a,b) it gives [1,2] [1]
thanks it was automaticly rounidng with starter code and i didnot think to change it
You're printing these numbers after rounding. Don't round at all.
The actual numbers for that test are: 1456.3652, 1456.3641
1456.365 1456.364 after test im geting True but execrsize says i should get false why?
for x in arr ? something like these?
why do you want to set size of array? these exsercise ask you to find biggest and smallest number in alredy existing array. these exsercies is test of function knowledge but can be done by loops.
Yes, it's a problem with your code, it skips values so, it's not removing all 2s there.
hi i try to solve these with javascript but it gives me error:
a was [1,2,2], b was [2]: expected [ 1, 2 ] to deeply equal [ 1 ]
but when i check values console.log(a,b) it gives [1,2] [1]