Log in from a computer to take this course

You'll need to log in from a computer to start Learn LOLCODE. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

LOLCODE allows us to combine, or concatenate, multiple strings together by using the SMOOSH and MKAY keywords.

For example, if the code below is executed:

BTW Results in "baklavaaaaaaa" VISIBLE SMOOSH "baklav" "aaaaaaa" MKAY

The terminal will output:

baklavaaaaaaa

SMOOSH is a slang for “squash” or “crush.”
MKAY is a slang for “ok.”

Instructions

1.

Declare a firstName variable and read in the value from the user.

Then print "Hello, " and firstName SMOOSHed together.

2.

Declare and read in a lastName variable from the user.

Then print "Hello, " firstName, " ", and lastName all SMOOSHed together.

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?