Javascript algorithms - Use of boolean logic with if statements

change the quotes " "