I am a Software developer with 5+ years of experience working on both web and desktop applications. I am ambitious and driven, I thrive on challenge and constantly set goals for myself, so I have something to strive towards, and I have Interests in problem solving and community building. I can fit into any of the phases of software development life cycle. I can also work solo as well as in a team.
I am available for mentoring
Separate your front end from your back end Unless you are using next.js. Don't use variables in your code create constants.js in every file and store your variables there then you can import to your code. Use prettier and lint for cleaner code. The list goes on and on
I don't think it's even cool trying to compare both, the have there strength and weaknesses even there is still a work around in there weakness. So for me I think you should work with what's more comfortable for you, I have tried both and I will tell you that the are both OK but I will prefer node because it has a brighter future PHP is wearing off doesn't mean people are not still using it, Facebook still run on PHP. So my opinion is go with what you are comfortable with