There’s no option for callbacks in the Code Playground. You can declare a function or an arrow function, but the option to add it as a callback never appears.
That seriously limits what can be done with the code snippets.
I’m on mobile. I’ll check on Desktop as soon as possible.