Google-search – teach Google Search that when I say “JavaScript”, I don’t mean “Java”

google-search

When I did a google search for "switch statement javascript uncommon", I got two hits about the unrelated language Java on the first page.

enter image description here

Can I somehow teach Google Search to not confuse the two words? Alternatively, is there a better search keyword to use than "javascript", such as "JS"?

Best Answer

Add -java to the search term. The character - is the equivalent of the logical NOT operator on Google search.