5 ms·
Neither is faster? Each one is slower than the other? head explodes
by phaedryx 12y ago
Neither is faster? Each one is slower than the other?
head explodes
- dragonwriter 12y ago> Neither is faster? Each one is slower than the other? For regular comparable x & y: not (x > y) and not (y > x) --> x = y So "neither is faster" means "they are equally fast", not "each one is slower than the other".
- Lockal 12y agoconst x = parseInt("CSS"); const y = parseInt("JS"); if ( (!(x > y) && !(y > x)) != (x == y) ) console.log('Sometimes "neither is faster" is not the same as "equally fast"');
- ASneakyFox 12y agoNo the third option is neither. Css vs js vs neither. Your web page is faster if you don't use animations. Most efficient way to add web page fluff is a non sequitur