[How to Solve] TypeError: XXX is read-only

The reason is that the defined variable is defined by const, and it should be changed to let

Read More: