function test() { LastIndexOf("hello"); LastIndexOf("hello"); eval(""); function LastIndexOf(s) { x = Math.min(Math.max(Math.pow(-1, 0.5), 0), s.length); 0 <= x; } } test();