Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update exercise.js #38

Closed
wants to merge 1 commit into from
Closed

Update exercise.js #38

wants to merge 1 commit into from

Conversation

kjara03
Copy link

@kjara03 kjara03 commented Aug 14, 2024

Is the solution complete?

[Yes/No]

Did you run into any problems?

[Describe...]

Did you collaborate with others on this solution?

@@ -4,6 +4,8 @@
*/
function transformArrayToUpper(listOfStrings) {
return;
Copy link
Member

Choose a reason for hiding this comment

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

Your tests are failing because this empty return statement needs to be removed. Your code wont execute because this ends the function first.

@@ -17,6 +19,15 @@ function transformArrayToUpper(listOfStrings) {
*/
function sumOfAllAges(listOfStudentObjects) {
return;
Copy link
Member

Choose a reason for hiding this comment

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

Your tests are failing because this empty return statement needs to be removed. Your code wont execute because this ends the function first.

@medgardo
Copy link
Member

You have the correct solutions but maybe there was an issue with your commit.

@medgardo medgardo closed this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants