I coded the following:
showTitles = (typeof showTitles !== 'undefined') ? showTitles : 'Y';
showSelectGroup = (typeof showSelectGroup !== 'undefined') ? showSelectGroup : 'Y';
But JSLint is saying:
Warning 3 JS Lint: Unexpected 'typeof'. Use '===' to compare directly with undefined.
How should I change my code?