Query and get it with function

i tried but not working.
I put an console.log(s) and i’ve got “1” on test and undefined on return function
i don’t understand why…