JavaScript has some OO features, but it does not really support method overloading. If you defined two methods with the same name but different input parameters, it won't throw any syntax error. However, it always calls the second one at runtime. A reference is
here.
No comments:
Post a Comment