multiverse-team-11 / inventory-app

https://inventory-app-11-1emn.onrender.com/
0 stars 2 forks source link

Functions and Methods #73

Closed Hannah0701 closed 4 weeks ago

Hannah0701 commented 1 month ago

Create functions/methods in Ruby and learn how to both define and call them.

Understand the concept of functions (methods in Ruby). Learn how to define and call functions. Explore parameter passing and return values.

By completing these tasks, you will begin to deepen the complexity of your Ruby programs and be able to create more abstracted solutions to common programming problems.

Functions and methods are the same in ruby as ruby is an object oriented language so all methods return an object unlike other languages where functions are different from methods in that they don't produce an object etc https://www.theodinproject.com/lessons/ruby-methods https://blog.saeloun.com/2019/10/14/ruby-adds-array-intersection/ https://www.rubydoc.info/stdlib/core/Integer:chr https://www.ascii-code.com/ https://www.theodinproject.com/lessons/ruby-basic-enumerable-methods