That's the function:
function randomNum(n) {
const numbers = [1,2,3,4,5,6,7,8,9,10]
if(numbers.includes(n)) {
console.log('ok')
} else {
console.log('Choose a value between 1 and 10')
}
}
console.log(randomNum(5))
Sorry if it's a simple problem, but i can't figure it out, i'm kinda new to programing. The function is returning 'undefined' after 'ok' or 'Choose a value between 1 and 10'.