If your goal is to learn how to code, then I think a language like Java would be great because it is so much more strict and really reinforces OOP. Obviously C and C++ are great too. You will really learn what’s happening on a computer level and learn some good coding habits and how to structure a program.
At least then, when you “break” a “rule” in JS, you’ll understand that you’re doing it. It just seems, IMHO, that it would be more difficult to go the other way. Maybe I’m just biased because of my Pascal beginnings.
But I wouldn’t think it’s an insurmountable obstacle. If you want to learn programming, then it sounds like your school is starting you on a good track. If your goal is web development, then there’s no reason why you can’t do fCC on the side.