Learn

As the old saying goes: “If a program runs on your computer… but it doesn’t generate any output… did it really run?” 🤔 Well, probably! But displaying output is still super important.

In this course, we will often want to see the results of our labor with messages and data printed to the console, or terminal.

To print in Emojicode, we use the 😀 ❗️ method. Let’s look at an example:

😀 🔤Hello, World!🔤❗️

The code above prints Hello, World! to the terminal.

  • 🔤Hello, World!🔤 is a string (we’ll learn more about strings in the next exercise). It holds the message we want to print to the terminal.
  • We wrap the thing we want to print with a 😀 at the start and a ❗️ at the end.

Let’s practice some printing.

Instructions

1.

You’re going to be using a lot of Emojis in this course… You can quickly pull up the emoji keyboard by pressing:

  • Mac: control + command + space
  • Windows: + .

Put those shortcuts to work!

Within the provided 🍇 🍉 code block, print your name as a text string (wrap your name in 🔤’s).

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?