JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
Kotlin
Kotlin Documenation
More
Share
Explore
Kotlin Documenation
Basics
Basic Syntax
fun
sum
(
a
:
Int
,
b
:
Int
)
:
Int
{
return
a
+
b
}
fun
: Keyword to declare a function.
main
: Name of the function. The entry point of a Kotlin application.
println
: Function to print text to the console.
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.