Ruby - String Operations
How can you replace all digits in a string with '#' but only if the digit is odd, using Ruby's
gsub method?gsub method?gsub with this pattern replaces every odd digit with '#'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions