URL

Report a typo

Write a function called url that creates a URL of a resource. The function has two parameters host and port and returns the URL in the following format: https://HOST:PORT. Both host and port parameters are optional and have the following default values: localhost and 443 respectively.

Write a program in Kotlin
fun url(host: String, port: Int): String {
// TODO
}
___

Create a free account to access the full topic