Variables and Data Types
Now that you've learned the basics of LOLCODE, explore more on working with numbers, strings, and special characters.
StartLOLCODE YARNs (Strings)
Lesson 1 of 2
- 1LOLCODE 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 S…
- 2For the case of SMOOSHing together strings and variables, LOLCODE supports a popular shortcut called string interpolation. Interpolation here refers to placing variables within strings in an easi…
- 3Most programming languages have some way of embedding specialized characters in strings that need to be presented in an unusual way. For example, “newline” characters (often represented by \n) indi…
- 4Fun fact: Unicode is the standard for how strings are stored and displayed across systems. It’s maintained by the Unicode Consortium, a non-profit organization with responsibilities ranging…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory