Javascript – In js, is there any feature can implement callable instance, like __call__ method in python
In python, you can make an instance become a callable obj, like below shows: # py code snippet class Demo: def __call__(self): print("Demo's instance callable") Demo()() # Demo's instance is callable In js, is there the same feature like shown…