Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven G. Harms authored Aug 27, 2019
1 parent 2a01753 commit 12e8cd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ You'll be coding your methods in `lib/introduction.rb`.

## Define a Method That Takes in and Uses an Argument

Define a method, `#introduction` that takes in the argument `name` and outputs
Define a method called `introduction` that takes in the argument `name` and outputs
the phrase: `"Hi, my name is #{name}."`

## Define a Method That Takes and Uses Two Arguments

Define a method, `#introduction_with_language` that takes in two arguments,
`name` and `language` and outputs the phrase: "Hi, my name is #{name} and I am
learning to program in #{language}."
Define a method called `introduction_with_language` that takes in two arguments,
`name` and `language` and outputs the phrase: `"Hi, my name is #{name} and I am
learning to program in #{language}."`

## Define a Method With an Optional Argument

Copy the previous method and name it `#introduction_with_language_optional`. It
Copy the previous method and name it `introduction_with_language_optional`. It
takes in two arguments, `name` and `language`, but the second argument is
optional. The default value for `language` will be "Ruby".

Expand Down

0 comments on commit 12e8cd6

Please sign in to comment.