Skip to content

learn-co-students/parrot-ruby-ruby-apply-000

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parrot

Objectives

  1. Define a method that accepts arguments.
  2. Create a default argument.
  3. Practice returning a value.

Instructions

In this lab you'll be defining a method called parrot.

The parrot method should accept an argument of a string and both puts out that string and return the string at the end of the method.

The parrot method should have a default argument of "Squawk!".

Note: This lab is explicitly testing your ability to control the return value of a method, not just what it does, but what it returns. Remember, return values are important. Ask yourself? what is the return value of puts?

Resources

View Parrot on Learn.co and start learning to code for free.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages