Which one is more efficient?
// < 11
for(var i = 0; i < 11; i++){ ... }
or
// <= 10
for(var i = 0; i <= 10; i++){ ... }
I don't know exactly how the for function works but I'm assuming that < 11
is more effiecient because in <= 10
it seems that in each 10
comparisons it has too check if it is equal too, not just smaller so it has to make 2 comparisons instead of one.
Am I right, or how this works?