Index Ai Academy
Glossary · Phase 8 · APIs

Arrow function

Also written: arrow functions

JavaScript's short function syntax, (x) => x * 2, often passed to map, filter and event handlers.

Try it now

Read each line as a Python comprehension: which items, then what from each.

Learn it properly

JavaScript for Python programmers · Variables, functions, arrays and objects mapped from Python, and the traps: truthy empty arrays, for...in and string sort. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write