what is the reason of (the second and third parameters are declared but its value is never read)

nested functions :
I am learning js
the first function and first parameters of parent function didn’t have any problem but I have a problem:
the value of second parameters and child function are declared but never read
I tried to run the second function