Question d’entretien chez Outschool

Create a JavaScript function that manipulates a string (based on a real web development scenario), then add test cases and iterate on the function to capture the edge cases.