I’ve been learning Javascript with Khan Academy. I’m looking at : http://www.khanacademy.org/cs/speed-circles/964929070
there is a line that reads “var draw = function() {…}” is he defining a function called draw? Or is the variable draw calling some function (which I don’t see defined)?
Thanks!
Yes, a function expression is being assigned to the variable named
draw. You can even call it: