Why does es6 need the decorator (Decorator) when it has extend inheriting the parent class?

RT,es6 has a parent class inherited by extend, so why do you want to decorate (Decorator),? isn"t it superfluous?

Oct.15,2021
The

decorator is just an additional function, and inheritance is to reuse existing functions. Why is it superfluous?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2a010-339a7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2a010-339a7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?