I've been reading about the this
keyword on MDN. In their article they have mentioned the following example:
<button onclick="alert((function(){return this}()));">
Show inner this
</button>
- What is the purpose of brackets
()
after return statement{return this}()
?