function arrOfK(nums, k) {
//Здесь ваш код
}
Code will run automatically after changes.
Code runs in an isolated environment.