Take a look at the following Javascript code.
<script type="text/javascript" lang="javascript"> function test() { alert('2'+8); alert(8-'2'); } </script>
The first warning window displays the result of concatenation 2 and 8, which is 28 . In the second warning field, however, it displays the subtraction of two numbers, which are 6 . How?
source share