DEV Community

Cover image for Basics of LOLCODE
Ankur Gupta
Ankur Gupta

Posted on

Basics of LOLCODE

This is a basic tutorial about how to code using a fun language called LOLCODE.
So LOLCODE is an esoteric programming language created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.

Any program of LOLCODE has a starting using "HAI [version name]" and ends with "KTHXBYE", basically what we can say in normal language a "hi" in starting and "ok, thanks, bye" in the ending.

HAI 1.2

Now to print something, we use VISIBLE keyword and put the output statement after the statement, here is an example of writing Hello world ->

HAI 1.2

We can write comments too using BTW (for single line) and OBTW (for multi line) as follows->

BTW this is a comment

this is a
multi line

Remember that TLDR is used to end a multiline comment.
This is just a short intro to LOLCODE, to learn more, here is one of the site you can refer to.

You can also view a demo video here -

Top comments (0)