What is the most advanced and difficult programming concept to understand?
Programming concepts
Ryder Cook
Mason Green
pointers
Luke Davis
Wrong.
Callbacks.
William Reed
Parallel Programming
I've been told this is something that even graduate students struggle with.
Brayden Thompson
The lambda calculus.
Isaiah Hall
Recursion
Lucas Allen
Goto
Dylan Nelson
Wrong.
Closures.
Jeremiah Rivera
closures are inner functions where you have access to variables from the outer function
think about this:
const prefix = '!';
client.on('message', message => {
if (!message.content.startswith(prefix)) return;
});
where in the message event/lambda function is prefix declared? nowhere, but it has access to the variable because it was defined outside of it
Asher Harris
partialy defined functions