Hello I've come across this piece of code and I have no idea how it works.
function firstFunction(something, else){
//stuff being done
return something;
}
var myFunction = firstFunction(function(a,b){
return a*b;
},'car');
So I am fairly new to Javascript so I'll just say it is, a really confusing language. I understand I am declaring a variable that is assigning the firstFunction to itself and passing some noname function as first parameter and a String as a second one.
How do I go about passing the arguments into that noname functions?