Skip to content

Comments

part 2 solution#23

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

part 2 solution#23
hisaalq wants to merge 1 commit intoJoinCODED:mainfrom
hisaalq:main

Conversation

@hisaalq
Copy link

@hisaalq hisaalq commented Jul 24, 2025

No description provided.

@shereengh
Copy link

function removeCourseFromStudent(student: Student, course: string): Student {
// write your code here...
const index = student.courses.indexOf(course);
if (index !== -1) {
student.courses.splice(index, 1);
}
return student;
}
try to solve it with only iteration methods

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