- 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è
Tricky JavaScript Questions
This hard JavaScript quiz goes after the language's strangest corners. You will untangle coercion, parseInt with map, object keys, the temporal dead zone and automatic semicolon insertion, and explain why each result happens.
Domanda di esempio
Domanda 1 di 10What does this print?
console.log([] + {}, typeof ([] + {}));
Mostra la risposta
B. [object Object] string + with objects converts both sides to primitives: [] becomes "" and {} becomes "[object Object]". One of them is a string, so the result is string concatenation.
Cosa copre questo quiz
- Coercion of arrays and objects to strings and booleans
map(parseInt)and other argument surprises- Objects used as property keys
- The temporal dead zone of
let - Automatic semicolon insertion after
return
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.