Skip to content
Frederic Jarjour edited this page May 21, 2022 · 5 revisions

No Semicolons

Contrary to many other programming languages, in Kode, commands must never end with a semicolon.

Hello world

Printing hello world in Kode is very straightforward: print("Hello world!")

Comments

Comments are bits of text embedded to code with the function of describing the code and/or annotating remarks. Comments must be written on an empty line or at the end of a line. To indicate the beginning of a comment, a pound sign # must be used first. For example,

# This is a comment in Kode
val myVariable = "Hello World!" # this is another comment
Clone this wiki locally