Multidimensional Array

hello every body,
I anyone can help me with this issue?
I have created this array and i would like to access the index 15 and save it in to new variable called fifteen.
var myArray = [1, 2, 3, [4, 5, 6, [7, 8, 9, [10, 11, 12, [13, 14, [15]]]]]];

thanks in advance

yes and then save that in to a variable called fifteen

how do you think that should happen?
what method/feature/syntax do you think should be used?

well, i need to use array indexing to access the number 15 in myArray and assign it to a variable called fifteen. then the indexes that were required to access the number 15, i should create a one-dimensional array called indxArray which contains, in order, the array indices i used to access the number 15 in the fifteen variable.

are those the instructions of this task? you need to create an array with the indexes?

you have not answered my question tho, what syntax do you need to use with the indexes?

Thank you for your comment. yes I do understand that. lets i try that

i am very much beginner with the programming. just started programming… i was stucked with an exercise and trying to solve it and to know it better

no not yet. i just joint today and try to look at it later

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.