rspec/rules/S2757/javascript/code-example.adoc

9 lines
180 B
Plaintext
Raw Normal View History

[source,javascript]
----
let target =-5;
let num = 3;
target =- num; // Noncompliant: target = -3. Is that the expected behavior?
target =+ num; // Noncompliant: target = 3
----