Complete the code to assign a string to the variable.
name = [1]In Ruby, strings are written inside double quotes. Here, "Alice" is a string.
Complete the code to add two numbers.
sum = 10 [1] 5
The plus sign (+) adds two numbers together in Ruby.
Fix the error in the code by choosing the correct method to convert a number to a string.
number = 100 text = number.[1]
In Ruby, to_s converts a number to a string.
Fill both blanks to create a hash with keys as symbols and values as strings.
person = { [1]: [2] }In Ruby, hash keys can be symbols like :name, and values can be strings like "Bob".
Fill all three blanks to create a method that takes a parameter and returns its class name as a string.
def get_type([1]) [2].class.[3] end
The method takes a parameter named value. Then it calls value.class.to_s to get the class name as a string.
