Greetings, this is my debut in this space and I am encountering some challenges as a beginner in the world of coding. It seems that passing arguments to parameters is where I'm hitting a roadblock, or perhaps there's a simple detail that I'm overlooking. Can someone pinpoint what I'm missing or where I'm going wrong? I just can't seem to get it to work...
function adultCheck(age,name) {
if (age <= 17) {
alert("Apologies " + name + ", you are not permitted to view this content as you are too young.");
} else {
alert("Hello " + name + ", at " + age + " years old, feel free to explore our lounge!");
}
}
adultCheck(15,Tami);