STDIN.gets.chomp() vs. STDIN.gets

What is the difference between STDIN.gets.chomp() and STDIN.gets?

Thanks.

The difference is the method chomp, which is available in the
documentation:

Essentially it removes the trailing carriage return a user hitting
enter.