Skip to content

Create Methods#26

Open
ASPhillips8 wants to merge 1 commit into
learn-co-curriculum:mainfrom
ASPhillips8:working-branch-asp
Open

Create Methods#26
ASPhillips8 wants to merge 1 commit into
learn-co-curriculum:mainfrom
ASPhillips8:working-branch-asp

Conversation

@ASPhillips8
Copy link
Copy Markdown

Created Methods that work like functions in index.js file. Created method that displays in terminal. Created method that takes argument to display in terminal. Created method to return sum of two number passed as arguments. Created method that uses guard clause and if condition is not meet.

Comment thread methods.rb
if num1.class != Integer
return nil
end
num1/2
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
num1/2
num1 / 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants