Part 2: Language Basics
Learn Kotlin’s core syntax: values, types, null safety, control flow, and functions.
What You’ll Learn
valvsvar, basic types, and type inference- Strings and string templates
- Kotlin’s null safety:
?.,?:,!!, andlet - Operators,
if/whenexpressions, loops, and ranges - Declaring functions with default and named arguments
Chapters
| Chapter | Description |
|---|---|
| Variables & Types | val/var, basic types, inference |
| Strings | String templates and multiline strings |
| Null Safety | Nullable types, safe calls, Elvis, !! |
| Control Flow | if/when expressions, loops, ranges |
| Functions | Parameters, default/named args, single-expression |