Brewing code for the perfect cup

Report a typo

Create a function that orders a coffee and call it in the main function to display the order details. Fill the blanks in the code to make it work correctly.

Fill in the gaps with the relevant elements
 orderCoffee(type: , size: String): String {
    return "You ordered a $size $type."
}
fun main() {
    val order = orderCoffee("latte", "large")
    (order)
}

Create a free account to access the full topic