Need help with some script syntax

Hey guys, sorry for whats undoubtedly a very basic question but after hours of googling I cant find it. I want to invert the following statement:

$gameActors.actor(1).hasSkill(36)

I want to check that the actor does NOT have the skill. In most languages I know I can invert things with !, but im new to JS and I cant seem to figure it out, also I would need an inverse function I think, not an ! operator. Is there a "does not haver skill" function or just an inverse function to hasSkill?

Thanks in advanced for any help.
Why not "!" operator?
Why not "!" operator?

Because im not sure where to place it in a statement like this. In other languages I would put it at the very beginning of the statement, but that seemed to throw an error for me.
And what was the error? And how did u do it?
And what was the error? And how did u do it?

When going back to see the error, I just realized my problem. I made a dumb typo and didnt notice it after looking 5 times somehow.
Thanks. This can be closed.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-some-script-syntax.104492/