Hi amazing stackers!
date = "10/02/2021"
d1 = date.split("/")
d2 = d1.to_s
puts d1
puts d1.class
puts d2
puts d2.class
in the above code, d2 shows the data type "string" but it is displayed like an array. And d1 is an array but it doesn't have an array like form. Can you please resolve the confusion?