Right-hand side of 'instanceof' is not an object

I was trying to make a command using this: https://community.nightdev.com/t/if-no-input-say-something/16116 and using this code: $(eval var a = "$(querystring)";if (a === "") {("Please type what you want to google.");} else {Here is your search result googled: https://www.google.com/search?q=$(querystring);}) I got this error:

Right-hand side of ‘instanceof’ is not an object
Can someone fix my code?

Here is your search result googled: https://www.google.com/search?q=$(querystring) isn’t a string. It needs to be encased in a form of quotes. '' or "" or ``

Thanks I didn’t catch that in my coding. Cheers, Ghostslayer989

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.