- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IA / Machine LearningReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- QuizNuovo
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Quiz di JavaScript: Destructuring & Spread
Destructuring and the spread syntax show up in almost every modern JavaScript file. This quiz checks array and object destructuring, default values, renaming, rest elements and how spread copies and merges.
Domanda di esempio
Domanda 1 di 10What does this print?
const [a, b] = [10, 20, 30];
console.log(a, b);
Mostra la risposta
A. 10 20 Array destructuring takes items by position, so a gets the first item and b the second. Extra items are simply ignored.
Cosa copre questo quiz
- Array and object destructuring
- Default values and renaming
- Rest elements with
... - Merging objects and arrays with spread
- Destructuring function parameters
Domande frequenti
Serve un account?
No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.
Posso rifarlo?
Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.