Skip to content

Hannah N#11

Open
hannahwn wants to merge 15 commits intoHackYourAssignment:mainfrom
hannahwn:main
Open

Hannah N#11
hannahwn wants to merge 15 commits intoHackYourAssignment:mainfrom
hannahwn:main

Conversation

@hannahwn
Copy link

Worked on problem solving

Copy link

@reposman33 reposman33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few comments

@@ -1,17 +1,20 @@
function countVowels(text) {
let count = 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice refactoring converting to lowerCase and assigning the item to a let

console.timeEnd("Linear Search");
console.log(
"→ Linear result:",
linearResult === "unsuccessful" ? "unsuccessful (correct)" : linearResult,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text is a bit cryptic (not so clear)... something like

console.log(finding ${target} in ${bigArray} was ${linearResult === "unsuccessful" ? "not" : ""} successful makes clear what you tried:

"finding 123456789 in 1000 was not succesfull"

@reposman33 reposman33 added Reviewed This assignment has been reivewed by a mentor and a feedback has been provided and removed Review in progress labels Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants