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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -