Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Non Compliant Code Example

The meaning of the value numeric literal 18 is not clear in this example. Additionally, should this value need to be changed, the programmer would have to change it in multiple places.

Code Block
bgColor#ffcccc
if (age >= 18) {
   /* Take action */
}
...
if (age < 18) {
  /* Take a different action */
}

...