How to call the toString method? ? ? Ask God for answers
1.
2.
Override toString on function prototype
fun is a method, but it is also an object.
You can try:fun.a = 123;console.log(fun.a);