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