How can we convert each uppercase to lowercase and vice versa?
Raising a simple error in Ruby:
Working on a Ruby project, I needed to get a random element from an array. First I thought using ‘rand’ method to get a random index:
A quick reference to various methods:
Problem: You’ll be defining a method, prime?(), that takes in an integer argument and returns a boolean of whether or not that integer is a prime number.