Q44
What is the correct way to cast a string to an integer in Ruby?
A.
string.to_i
AnswerB.
string.integer
C.
int(string)
D.
string.convert(:integer)
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board