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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -