- 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: Strings & Template Literals
This JavaScript strings quiz checks template literals and the everyday string methods. You will predict the output of slice, split, trim and at, and see that strings can't be changed in place.
Domanda di esempio
Domanda 1 di 10What does this print?
const name = "Ann";
console.log(`Hi, ${name}!`);
Mostra la risposta
D. Hi, Ann! Inside backticks, ${...} is replaced by the value of the expression. With normal quotes the text ${name} would be printed as is.
Cosa copre questo quiz
- Template literals with backticks and
${...} - Cutting strings with
slice()andsplit() trim(),toUpperCase()andat()- Strings are immutable
- Searching with
includes()
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.