Question d’entretien chez Intervue.io

1. split a string with multiple spaces 2. print console.log after 5 sec

Réponse à la question d'entretien

Utilisateur anonyme

12 oct. 2025

1. str = " My Name is Abc" str.trim().split(/\s+/).join(" "); 2. use promise to wait