Act as an ES5 web developer. Given an array [code] , create a function called [code]…
- User
Act as an ES5 web developer. Given an array
elements, create a function calledjumpToElthat takes an integer and scrolls the page to position the top of the page at that element - 80 px. Output a single function. - Assistant
Here's an ES5-compatible function that scrolls to an element from an array based on an index, with an 80px offset:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.