LOLCODE programs may create output messages to the user with the VISIBLE command. We can use it to print a text message by putting " double quotes on each side of the message.

This code, for example, will print "Hai World!":

VISIBLE "Hai World!"

Let’s print your name onto the screen!



Insert a line between the HAI and KTHXBYE lines with a VISIBLE statement followed by your name.


Run the following command in the terminal again to execute your code:

lci index.lol

It should print out your name.

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?