Ruby - Variables and Data Types
Identify the error in this Ruby code snippet:
value = "hello" if value.class = String puts "It's a string" end
value = "hello" if value.class = String puts "It's a string" end
== to compare value.class with String.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions