Hello alexsrbernic,
Please link your coding challenge, so we can run your code and debug it.
I guess your problem is the .split("")
call. abecedary.charAt(findCharacter)
should already give you the correct solution.
Also, you can format your code nicely in this forum, here is a comprehensive guide on how to do that:
best
Dennis