Hello community!
- Your review of the Project. Was it easy, difficult, just right?
I feel it was just right, but if I didn’t consult the shared example, I would have got stuck.
I needed to consult the shared example especially when I had to:
- use
index
inside the loop
What I tried: Instead of using messages[property][index]
, I created a nested classic for
loop, where I would use i
as the index. I kept getting an error saying that the first element of each array in the messages (messages[prop][i]
) is not a function.
Also, I realise that I do not yet possess how to properly call functions inside other functions. I struggled a lot to make the final random output the user sees work when it was passed as an argument to the format
function (formatWisdom(personalWisdom)
) and when it was called inside the format
function itself.
My function is called generateFinalExpression
and it takes generateRandomExpression
as a parameter, but their purpose is merely the same to what formatWisdom
and personalWisdom
do.
- An estimate of how long it took you to complete
It took me around 2 hours, maybe a bit more.
- The link to your code repo
Feel free to checkout my solution on my repo page
Feedback appreciated, thank you.