Beginner Ruby
Q25 / 100

What is the result of "nil.to_s"?

Correct! Well done.

Incorrect.

The correct answer is B) ""

B

Correct Answer

""

Explanation

nil.to_s returns an empty string "", while nil.inspect returns the string "nil".

Progress
25/100