From 0f50225d135970afb88c596ddfbf1cd5a97b9e9e Mon Sep 17 00:00:00 2001 From: Divlo Date: Fri, 30 Aug 2019 00:00:29 +0200 Subject: [PATCH] Capitalize names entered --- scripts/fonctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fonctions.js b/scripts/fonctions.js index fda66d3..33e9890 100644 --- a/scripts/fonctions.js +++ b/scripts/fonctions.js @@ -152,7 +152,7 @@ function filterStudents(filteredLetter, students) let filteredStudents = []; for(let i = 0; i < students.length; i++) { - let studentBoucle = students[i]; + let studentBoucle = capitalize(students[i]); if (studentBoucle[0] === filteredLetter) { filteredStudents.push(studentBoucle); }