πŸ“Š Ruby
Q. What does the 'chomp' method do in Ruby?
  • (A) Removes trailing whitespace
  • (B) Converts to integer
  • (C) Reads input from user
  • (D) Splits a string
πŸ’¬ Discuss
βœ… Correct Answer: (A) Removes trailing whitespace

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
131
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate