I made a basic number guessing game in JavaScript last week. A friend saw it and asked if they could turn it in as their own work. I felt stuck between helping a friend and doing the right thing. I decided to show them how to write the code from scratch instead. We spent an hour going through each line and what it does. They ended up making their own version with a few changes. My tip is to always teach the concept, not just hand over the answer.
You're not learning if you just paste answers.