Glossary · Phase 8 · APIs
Arrow function
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.
Other terms from the same lesson
- template literal: A JavaScript string in backticks with ${...} placeholders, like a Python f-string.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.