=), instead of a comparison operator (
==) in an if statement.
if statement returns
false (as expected) because x is not equal to 10:
Addition is about adding numbers.
Concatenation is about adding strings.
Because of this, adding a number as a number will produce a different result from adding a number as a string: