I have a function in my script and the first parameter is an int value.
thisIsMyFunction(4,"foo");
I would like to create an array with that int value, so in this case, it should create an array with 4 items in it, like so:
var intArray = [0, 1, 2, 3];
And so on:
thisIsMyFunction(8,"foo");
var intArray = [0, 1, 2, 3, 4, 5, 6, 7];
I am a beginner in javascript, so I hope you can help me solve my issue ;) Thanks