JavaScript plus sign in front of function expression
Опубликовано: 17 Октябрь 2024 на канале: Code Samples
1,294
13
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?