I’ve been looking for information about immediately invoked functions, and somewhere I stumbled on this notation:

+function(){console.log("Something.")}()

Can someone explain to me what the + sign in front of the function means/does?

4 s
4

Leave a Reply

Your email address will not be published. Required fields are marked *