How can i resolve 'function invocation is expected' in kotlin?
Example:
fun greeting() = "Hello"
println(greeting)
This error arises when you reference a function but don't invoke it with '()'.
Solution:When referencing a function, ensure to invoke it with '()'.
println(greeting())