how can the new keyword be used along with function like shouldnt it be like new followed by the data type…function is not a datatype
New keyword with a function
It works like that in JS, it is different from other languages.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.