Files
30-seconds-of-code/snippets/not.md
2020-09-15 21:52:00 +03:00

257 B

title, tags
title tags
not math,logic,beginner

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