Which method is faster or more responsive in javascript, if-else, the ternary operator or logical OR? Which is advisable to use, for what reasons?
I'm doing another syntax:
var a = true, b; b = (a == false) ? true // if a == false, b = true : false; // else: a == true so b = false /* Equivalent of if(a == true) var b = true; else var b = false;
Some people like my code and tell me it's simple to read.