In the console of Dev Tools, if you have an object named x
with three methods/functions - a()
, b()
, and c(i, j, k)
, why doesn't it automatically insert the parentheses, along with the correct spaces for the parameters (similar to eclipse for Java) when you use the auto-complete tab or enter?
Currently, after selecting x.a
, x.b
, or x.c
, it only prints without the function parentheses.
I am assuming that this behavior is because in JavaScript, functions can be overloaded and have different parameter types, unlike Java where constructors have a fixed order. Is there any way to make it possible to include the function parameters in the autocomplete feature?