Next Life Predictions
Codecademy portfolio project, 2021
Logic of the code
- Use a function to generate a random number. It should take the length of an array as argument and use it as a maximum value later in the program.
- Create an object to store 3 types of messages.
- Create getter for each type of messages to return a random message.
- Create object method to combine the randomly selected messages into a single one and print it when the method is called.