Skip to content

Diana C.#4

Open
dianadenwik wants to merge 1 commit intoHackYourAssignment:mainfrom
dianadenwik:main
Open

Diana C.#4
dianadenwik wants to merge 1 commit intoHackYourAssignment:mainfrom
dianadenwik:main

Conversation

@dianadenwik
Copy link

No description provided.

@sycons sycons self-assigned this Feb 14, 2026
Copy link

@sycons sycons left a comment

Choose a reason for hiding this comment

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

Well done! You seem to have a good grasp on algorithms and using them in problem solving ⭐

  • Count values above a threshold ✅
  • Write Unit Tests ✅
  • Debug and Fix the Logic ✅
  • Algorithm performance experiment ✅

Copy link

Choose a reason for hiding this comment

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

Minor change: Naming convention for test files usually follows the file it is testing. In this case that would be calculateAverage.test.js.

console.log(countVowels("hello"));
console.log(countVowels("javascript"));
console.log(countVowels("JLOOIKANJDK"));
console.log(countVowels("EIOAEYoiibtd"));
Copy link

Choose a reason for hiding this comment

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

Another possible test case is an empty text.


function linear_search(array, target) {
for (let i = 0; i< array.length; i++){
if(array[i] === target) {
Copy link

Choose a reason for hiding this comment

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

Pay attention to code formatting. Indented code is easier to read.

@sycons sycons added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label Feb 15, 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