-
Notifications
You must be signed in to change notification settings - Fork 0
Syntax
Frederic Jarjour edited this page May 21, 2022
·
5 revisions
Contrary to many other programming languages, in Kode, commands must never end with a semicolon.
Printing hello world in Kode is very straightforward: print("Hello world!")
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