javascript if/else or ternary operator is faster?
Posted
by Jeff
on Stack Overflow
See other posts from Stack Overflow
or by Jeff
Published on 2010-04-06T17:18:42Z
Indexed on
2010/04/06
17:23 UTC
Read the original article
Hit count: 344
JavaScript
Which method is faster or more responsive in javascript, if/else or the ternary operator? Is it preferred to use one or the other and if so, for what reasons?
© Stack Overflow or respective owner