Local variables

These are variables that are local to a scope. The a, i, and b variables in our previous example are all local variables.

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.