I have come across syntax which is very confusing me.Please help me to understand it.
Syntax:
this.customfun(); // which returns promise
window.customfun = this.customfun // this is next line of code
I can't understand what is called this assignment which returns promise and what will happen when I will run window.customfun()