RUBY QUIZ!
Fork, Clone. (1 minute)
Add a file quiz.rb to the repo and put all your answers in there. Do a commit after each question. After 15 minutes, make a pull request regardless of how far you've gotten.
-
Create a array from the number one to a hundred. Loop through the array and puts to the console all the even numbers, if the number is odd put them into an empty array in descending order.
-
Create an array from 'a' to 'z'. From that array create a new array with all the vowels. Loop throught the array and print all the vowels.
-
Create a hash containing 5 properties using symbols as key names.
-
Loop through the previous hash and print to the console "the key name is keyName and the value name is valueName"
-
Create a hash containing 5 properties using strings as the key names.
-
loop through five and print keys and values
-
Create a Boolean value, hash value, array value and symbol value, and check what class they come from.
boolean