javascript - Write a function called 'maker' that creates an array and fills that array with numbers 1 to 25, then returns the array -


question write function called 'maker' creates array , fills array numbers 1 25, returns array

i'm stuck on problem, i've watched bunch of videos, , read various forms, can't seem figure out. can me?

my attempt var myarray = [1-25]

function maker(arr) { return myarray }

try this:

function maker() {   var myarray = [];   (var = 0; < 25; i++) {     myarray[i] = + 1;   }   return myarray; } 

hope helps!


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -