JavaScript cannot be fixed!
As others have noted, the fundamental problem with web development is that JavaScript is a broken language. The intractably long list of problems is well-known. There are only two possible things you can do about it: either eliminate those problems from the language or avoid the…