what i learned is that the projects aren’t at fault for this
if you lose motivation as quickly it doesn’t matter whether you’re building a JS web app or Mars Rover
maybe his expectations were too high and he need to find a right reason to why keep working on projects instead of why giving up on projects
maybe he has emotional issues and needs to see psychologist