function findNeedle(haystack) { return "found the needle at position " + haystack.indexOf("needle"); }