Below is what I have in Javascript
var x=["1","2","3","4","5","6"];
c = (b = x[1])[0] ;
alert("B=" + b);
alert("C=" + c);
When I run this in Firefox 9.0.1, I get below output.
B=2
C=2
When I run same in IE7, I get below output.
B=2
C=undefined
Can I know why IE is displaying as undefined??
Thanks in advance!!!