Beginner Ruby
Q4 / 100

What is the correct way to create a variable named name with value "Alice"?

Correct! Well done.

Incorrect.

The correct answer is C) name = "Alice"

C

Correct Answer

name = "Alice"

Explanation

Ruby variables are dynamically typed and assigned simply with "=", without any declaration keyword.

Progress
4/100