Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Predict the output
/
JavaScript
/
Arrow functions
What does this program print?
from Arrow functions
Node 24
beginner
2 min
What does this program print?
JavaScript
Copy
const
makeLabel
=
(id)
=>
{ id };
console
.log
(
makeLabel
(
'A-17'
));
{ id: 'A-17' }
'A-17'
undefined
It throws SyntaxError.
Check
Copy code
Open in playground
Ask AI about this kata
Report an error
previous kata
What does bind change when applied to an arrow function?
Quiz
next kata
Which name does this program print?
Predict the output
A new version is available
Reload