13 lines
198 B
Plaintext
13 lines
198 B
Plaintext
Condition operators can quickly become hard to be read.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
[source,text]
|
|
----
|
|
function sayHello() {
|
|
var a = (a === 'A') ? 'is A' : 'is not A'; // Noncompliant
|
|
}
|
|
----
|
|
|