Complete the code to assign a string to the variable.
name = [1]In Ruby, you can assign a string directly to a variable without declaring its type.
Complete the code to add a number to the variable without declaring its type.
age = [1]Ruby allows assigning numbers directly to variables without type declarations.
Fix the error by completing the code to concatenate a string and a number using dynamic typing.
result = "Age: " + [1].to_s
In Ruby, you convert numbers to strings with to_s before concatenation.
Fill both blanks to create a hash with dynamic keys and values.
person = { [1] => [2] }Ruby hashes can have symbols as keys and strings as values, showing dynamic typing.
Fill all three blanks to create a hash with mixed key types and values.
data = { [1] => [2], [3] => 100 }This shows Ruby's dynamic typing by mixing symbols, strings, and numbers as keys and values.