I just started teaching myself javascript and I'm already stuck.
Can anybody help me out with this code?
hasFlash=false
for (i=0; i<navigator.plugins.length; i++){
if(navigator.plugins.name.indexOf("Flash") >=0){
hasFlash=true
}
}
If anybody could explain line by line what it does, I would greatly appreciate.
Can anybody help me out with this code?
hasFlash=false
for (i=0; i<navigator.plugins.length; i++){
if(navigator.plugins.name.indexOf("Flash") >=0){
hasFlash=true
}
}
If anybody could explain line by line what it does, I would greatly appreciate.