The !--
notation is not a special operator in JavaScript. It is often a typo or part of HTML comments (<!-- -->
). In JavaScript, !
is the logical NOT operator, and --
is the decrement operator.
Tags: basic, JavaScript, operators
URL: https://www.tiktok.com/@jsmentoring/photo/7456013855827791137