There is an input on the page:

<input type="text" onChange="alert(this.value+1);"/>
What will alert print out, if the element`s value is changed to 3?
Explanation
Type of input value is a string which is means this.value + 1 is concatenation and not adding.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback