14th May 2020, 2:19 AM
Alen Antony
Alen Antony - avatar
2 Answers
+ 2
Hi. The output is correct. Is an array that contains one element that is an array. The three dots inside the array means more elements inside, in this case the same array infinitly. Thats why you got [[...]] instead of [[]]. Here' s a code so you can compare. https://code.sololearn.com/cHNlBudzw01K/?ref=app
14th May 2020, 3:16 AM
Benjamin Alejandro Luna
Benjamin Alejandro Luna - avatar
+ 2
Thank you
14th May 2020, 12:30 PM
Alen Antony
Alen Antony - avatar