Why does this code allow a change? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Why does this code allow a change?

A constant change gives a warning, but is accepted https://code.sololearn.com/c1YI43WKtIHk/?ref=app

17th May 2017, 11:52 AM
Galina
Galina - avatar
1 ответ
+ 4
Thats how ruby works. It allows constants to be changed but it throws a warning when this happens. You should aim for a warning free code.
17th May 2017, 12:04 PM
seamiki
seamiki - avatar