+ 1
Is this code valid?
var age = [3,5,7,8,9,3]; for (i=0; i< age.length; i++) { age[i] *=3; alert (age); } Why does it fail to output anything?
4 Answers
+ 5
The code has no errors. It is working properly and outputs six alerts
+ 2
Try alert(age[i])?
+ 2
It works for me...
+ 1
Thank you guys. I have got it. It works now