Practice 34169

Report a typo

[TITLE]Loading # Application[/TITLE]

Imagine you are implementing your own web browser and want to understand when your browser loads images.

There is a function suspend fun loadImage(url: String): Image that is already defined. It receives a URL, makes a web request, waits for the answer, and then processes and returns the received image. The Image class is defined, too.

You need to implement a function called logImageLoading, which receives a String and calls loadImage, prints the text "Image loaded!", and returns the Image.

Write a program in Kotlin
// change this function:
fun logImageLoading(url: String): Image {

}
___

Create a free account to access the full topic