It would have worked out fine if we managed to lose the prototypes without ramming classes into the language and baiting all the Java dickheads over to the web ecosystem.
Javascript breathed it's last breath the moment someone saw NestJS and said "wow that's a good idea".