rewrite this kotlin function into javascript
```kotlin
fun meow(numberOfCats: Int?) {
    for (i in 1..(numberOfCats ?: 5)) {
        println("meow")
    }
}
``` First repeat the request without change, then give your answer.
user