Lesson Weekend

Goal: In the Methods lesson, we learned:

  • How to manipulate strings with methods
  • How to uppercase a string
  • How to concatenate a string
  • The argument to the method is located within the parentheses
  • Methods, in JavaScript, are always followed by parentheses

Begin to practice using methods by completing the exercises listed below.

Warm Up


  • What is a return value? What does it represent?
  • What is an argument? How do you provide one to a method in JavaScript?

Code


Methods Practice

Practice using the methods you've learned about:

  • Concatenate the following strings together:
    • "hi" and "there"
    • "hey", "there", and "friend!
  • Uppercase the following string: "hey there friend!"
  • Uppercase just the "hey" and then concatenate it to "there" and "friend!"

Lesson 12 of 27
Last updated April 6, 2021