Why is gets not preferred instead of gets.chomp?
Gets add an extra new line while chomp removes it
Gets remove an extra new line
Chomp erases the value stored in the variable
All of the mentioned
Correct Answer: A — Gets add an extra new line while chomp removes it
Explanation:
gets.chomp will remove the extra blank space.