Conversation
corneliusellen
left a comment
There was a problem hiding this comment.
Hey John I just had a chance to go over your prework and things are looking very good! Great attention to detail on this.
You are officially turing ready! I added some comments to a few sections for areas to work on or adjustments to make before starting Mod 1. Keep up the hard work moving forward and let me know if you have any questions.
|
|
||
| # Build a Bear | ||
|
|
||
| # define a method named build_a_bear passing in 5 arguments |
There was a problem hiding this comment.
A better way to say this would be "declaring 5 parameters" (not arguments). Arguments are when you pass in the actual values. Parameters and arguments are 2 sides of the same coin, so to speak
| #define a do loop execute 1 to the value of range times | ||
| (1..range).each do |i| | ||
|
|
||
| #condition if i divided by num_1 remainder (modulus) is 0 and i divided by num_2 remainder (modulus) is 0 |
There was a problem hiding this comment.
A cleaner way to say this might be "if i divided by num_1 does not have a remainder, then do this"
No description provided.