diff --git a/1. Introduction/1. The Problem.js b/1. Introduction/1. The Problem.js index b3f2c03..37d2013 100644 --- a/1. Introduction/1. The Problem.js +++ b/1. Introduction/1. The Problem.js @@ -3,6 +3,7 @@ const studentsDatabase = ["jordan", "erick", "john", "michel"]; // Algorithm for finding a specific user const findStudent = (allStudents, studentName) => { + console.log("Searching for " + studentName); for (let i = 0; i < allStudents.length; i++) { if (allStudents[i] === studentName) { console.log(`Found ${studentName}`); @@ -11,3 +12,5 @@ const findStudent = (allStudents, studentName) => { }; findStudent(studentsDatabase, "erick"); +findStudent(studentsDatabase, "john"); +findStudent(studentsDatabase, "michel"); \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..cd12734 Binary files /dev/null and b/output.txt differ