I am currently browsing my collegiate colleagues and asked this question on this issue. Is there a preferred syntax for coding, say, if the offer operator is for JavaScript compilers (JavaScript Engines)? I personally prefer template A when I look at the code myself, but do compilers have a preference too? In other words, are less than 3 patterns taking the same number of steps for compilers to interpret them?
if( a === b ) {
return true;
}
if(a===b){return true;}
if(a===b)return true;
thank
source
share