In Kotlin, I understand that a string can be assigned to a function directly, such as:

```
fun foo(): String = "Hello World"

```

But you can also assign a String to a variable directly as well:

```
var foobar: String = "Hello Word"

```

My question is, why would you ever create a function when you could just create a variable? I can't see the point in the existence of this functionality.