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.
While working on the “Prime? Lab” at Flatiron’s COmmunity Powered Bootcamp; I’ve leard a few ways to create an array with a range. Enjoy:
I was working on the “Cartoon Collections Lab” today and learned how to capitalize the first letter of a string in Ruby.