Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI
+ 1

How can I remove an array element from a multidimensional array.

win_moves = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]]; How do I remove a specific element from win_moves array?

javascriptarraymulti
24th Nov 2020, 7:17 PM
Logos
Logos - avatar
3 Antwoorden
+ 3
You can try the array method splice(); https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice https://code.sololearn.com/c6sj2fRdrooT/#node
24th Nov 2020, 8:25 PM
ODLNT
ODLNT - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
Is anyone else experiencing this Sololearn issue?
0 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
0 Votes
Bro can you fix yt error?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes
Bug in Completing AI Practice
0 Votes