I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (
</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
And since this is a working solution, I added
Cool, we’re glad that you solved it. (Although I had to make a small change to get it to work for me.)
We don’t usually post working solutions, especially for curriculum problems. Remember that there are other learners here, testing also. If you were in school, in the middle of a test, you wouldn’t go up to the blackboard and start writing out the answers.
Were you looking for some critique?
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.