Password validation

Report a typo

Set the variable isPasswordCorrect to an observable data type that will cause a recomposition if its value changes, skipping any unnecessary recompositions. The value of isPasswordCorrect state must be true if the password contains digits, otherwise false.

Write a program in Kotlin
val userPassword = mutableStateOf(getPassword())

val isPasswordCorrect = // TODO
___

Create a free account to access the full topic