+ 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 Odpowiedź
+ 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