I am working on some JavaScript code and I run into this syntax that I have never seen and I am trying hard to understand but cannot find good examples.
Can someone please describe what might be going on here?
function onMouseMove(event) {
    (function(ev) {
       // some piece of code
    })(event);
}
 
     
    