In germany, if you want to drive a motorcycle there is a period of time where you are limited to 70 kW engines (either until you have the licenses for 2 years or you are older then 24)...
I think something similar would be helpful for the software mess we run in our browsers every day ....
Junior JS Devs should be limited by javascript.options.mem.max = 64k for the first 2 years of their career. (If they show up with a cool C64 Demo, this time period could be shortend)