Concept Flow - Kotlin REPL and script mode
Start Kotlin REPL
Type Kotlin code line
REPL evaluates code
Output result shown
Type next line or exit
Back to Type Kotlin code line
Start Kotlin Script
Write Kotlin code in file
Run script with kotlin command
Script executes top to bottom
Output shown in console
Script ends
↩Back to Type Kotlin code line
Kotlin REPL lets you type and run code line by line interactively. Script mode runs a whole Kotlin file from top to bottom.