Vidyalelo
Ruby Programming · Q17

Basic Syntax in Ruby

Programming · Ruby Programming · question 17

Q17

What is the correct syntax for printing a message to the console?

A.
console.log("message")
B.
print("message")
C.
puts("message")
Answer
D.
write("message")

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board