javascript - Why isn't this function working on greasemonkey -


why isn't function working in greasemonkey.

function arre(){     var index;     var fruits = ["banana", "orange", "apple", "mango"];     (index = 0; index < fruits.length; index++) {         window.alert(fruits[index]);     } } 

you declared function did not call it. add end:

arre();


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -