Commonly Confused Characters

The following statement will give you a syntax error, but you may not find any error.

 var x:Number = 10 – 5;  

Infact the minus symbol is wrong. The right one is given below

 var x:Number = 10 – 5;  

First one is Dash with char code 8211 and the right one is Hyphen with char code 45 .

Here you can find similar pairs of confusing characters