2022-02-04 16:28:24 +00:00

35 lines
590 B
Plaintext

Doing an operation on a string without using the result of the operation is useless and is certainly due to a misunderstanding.
== Noncompliant Code Example
[source,javascript]
----
var str = "..."
str.toUpperCase(); // Noncompliant
----
== Compliant Solution
[source,javascript]
----
var str = "..."
str = str.toUpperCase();
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]