Files
30-seconds-of-code/snippets/not.md
2021-01-04 13:04:15 +02:00

272 B

title, tags, unlisted
title tags unlisted
not math,logic,beginner true

Returns the logical inverse of the given value.

  • Use the logical not (!) operator to return the inverse of the given value.
const not = a => !a;
not(true); // false
not(false); // true