Function code - Learn web development | MDN

Hello, may I know why the function does not work in the default state when I run it.

and thanks advance.

Hello @albaraa_1949

open the developer tool of your browser and choose console and if you did get the issue let me know

and have a nice day :slight_smile:

try to check the length of the array before the for loop start :wink:

That’s what I did at first, but it didn’t work…?!

I don’t quite understand what you mean…

i mean after the opening bracket of the function and before the for loop code

try to check para.length and notice the result when you called your function especially the last call showdetails();

1 Like

Oh, I didn’t really notice that, thank you.

you very welcome :slight_smile:

1 Like