From 1394e3a3c35f755aeec69102c58f738c11f841c0 Mon Sep 17 00:00:00 2001 From: sshiv Date: Sun, 4 Jan 2026 23:19:26 +0530 Subject: [PATCH] Add debug logging and output file --- 1. Introduction/1. The Problem.js | 3 +++ output.txt | Bin 0 -> 28 bytes 2 files changed, 3 insertions(+) create mode 100644 output.txt 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 0000000000000000000000000000000000000000..cd12734b3d626f5c3de64a91e7d60623b203964c GIT binary patch literal 28 jcmezW&y69Up_CzyA%#JKA(f$sA(J7QA)A4hfr|kEc-96# literal 0 HcmV?d00001