Why is my javascript equals operator always return true? -


the following if statement evaluates true:

if (a = b) { //... } 

why true?

you need use comparing operator

if(a == b) ... 

instead of assigning one


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -