DEV Community

Cover image for Basics of LOLCODE
Ankur Gupta
Ankur Gupta

Posted on

3 1

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
KTHXBYE

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
VISIBLE "HAI WORLD!"
KTHXBYE

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

BTW this is a comment

OBTW
this is a
multi line
comment
TLDR

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 -

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay