Equivalent of and in JavaScript? -
what's equivalent of , in js because can't seem find answer
}else if (i % 3 & 5 === 0){ console.log('...')
a googling "javascript , operator" returns first hit of http://www.w3schools.com/js/js_comparisons.asp explains answer:
if (i % 3 && 5 === 0)
this answer you're looking for, given how it's written, might not give outcome expect depending on execution.
Comments
Post a Comment