JavaScript ES6 Lösung Rectangle Class
It’s easier to optimize correct code than to correct optimized code.
Joshua Bloch