To get actual character from Unicode to compare it to a literal in HTML you can use String.fromCharCode() e.g.
You should check against the string
'⚙' or, if you do not how to enter it in your code, the escape notation
\u2699. There are other, clumsier ways to construct a string containing the character, but simplicity is best.
No matter how the character is written in HTML source code (e.g., as the reference
⚙ is just a sequence of seven Ascii characters (though you can pass it to a function that parses it as an HTML character reference, or you can assign it e.g. to the
innerHTML property, causing HTML parsing, but this is rather pointless and confusing).