There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
It starts with the block parameter, |thing|, which acts as the iteration variable in the each loop. As the array is iterated, each element will in turn be assigned to thing which is interpolated in #{thing} within the output string expression.
If you are getting the right output but it’s not letting you move onto the next exercise check that you have not left a space before the ! because thats what was stopping me from being able to proceed.
Ah! the syntax error kept saying it doesn’t say ‘I love Ruby’ then when i asked for the solution, it gave me the same output from my incorrect code that’s why i was confused.
Could you show me what the code looks like please? and thank you for such a prompt response, as I am a beginner to this language, soaking up as much as I can.