ok so im taking the treehouse course on ruby and i'm on the part of methods, its not that i don't understand it at all but i would like clarification on what a method is, what def means.. how arguments work, returns, etc.. just the basics of how methods work and what they are typically used for thanks!

now running in the compiler VCR.record(8pm, 830pm) will record you favorite episode of Full House.

*This is not actual code and actually won't compile, but it kind of explains that you can pass in arguments for use in your methods. The method will return the last thing you call and def is short for define, which is how you define all Ruby methods.

In the case of my quick dirty example, the output will be "yes video recording" or "no video recording", depending on if Time.now matched either the start or end time.

Also Time is a class already include in Ruby for use in any program, it is equip with methods you can use like now. Open up the console and try.

I did not know that. Most references I have looked at for Javascript seems to define a return statement in Functions. Do you have any references for me to read up on this?

Functions without a return statement will return undefined. But if you are not expecting a value of some sort back, then this is fine, and you can skip the addition of the return line, because the function will complete then the next function (if there is one) will execute on it's own.

An example of this would be a function you call, which changes some CSS values. You are not expecting anything back, so no reason to have a return line.