JSLint gives me the following error :
The '&&' subexpression should be wrapped in parens.
Here is the line which causes problem:
if (anchorLink === 'page1' || anchorLink === 'page2' || anchorLink === 'page3' && (!$('#myDiv').hasClass('boom'))) { /* stuff */ }
I'm sorry for asking this because a very similar, almost identical question was asked here, but I've tryed different ways of wrapping that && condition , I can't make it work. Any help for the correct syntax would be really appreciated.