03. Functions πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ—οΈ Write Simple Functions

Instructions

  • Create Three Simple Functions

    • One function that adds 1 and 2 together using Function Declaration.

    • One function that subtracs 10 from 20 using Function Expression.

    • One function that calculates the area of a square using an outside variable, using either function declaration or expression.

πŸ† Bonus

If you have completed this activity, work through the following to further your knowledge:

  • Do we always need to use return?

Use Google or another search engine to research this.


βœ… Solutions

Solutions Click Here