Ruby Programmer Silver Practice Questions - Ruby Association Certified Ruby Programmer Silver (version 3) Exam

Question Number 5


Given `CONST = 1`, what happens when this code runs? ```ruby CONST = 1 CONST = 2 puts CONST ```
✔ Correct Answer:
Prints 2 but emits a warning about an already-initialized constant