var name = ["a","b","c"]
alert(name[1])
//alert will return ,
if i change name
to array
or var
to let
, the code will return b
normally. Why does this happen?
var name = ["a","b","c"]
alert(name[1])
//alert will return ,
if i change name
to array
or var
to let
, the code will return b
normally. Why does this happen?