Recent Posts

Alternating Case

less than 1 minute read

How can we convert each uppercase to lowercase and vice versa?

Getting A Random Element From Array

less than 1 minute read

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:

Solving The Prime? Lab

less than 1 minute read

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.