Skip to content

Comments

yay#14

Open
jello2025 wants to merge 1 commit intoJoinCODED:mainfrom
jello2025:main
Open

yay#14
jello2025 wants to merge 1 commit intoJoinCODED:mainfrom
jello2025:main

Conversation

@jello2025
Copy link

No description provided.

@shereengh
Copy link

function removeCourseFromStudent(student: Student, course: string): Student {
let courseIndex = student.courses.indexOf(course);
student.courses.splice(courseIndex);

return student;
}

Solve it using an iteration method

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