Ruby - Class Methods and Variables
Which of the following is the correct syntax to freeze an array
arr in Ruby?arr in Ruby?freeze is called on the object to freeze it.arr.freeze is correct; options like freeze(arr), arr.freeze!, and arr.frozen are invalid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions