Basically, return the fucntion without bracs means it is returning the reference to the fucntion, whereas the function with () will going to execute the function and returns the value which is returned by the function.
// Execute function b() and return its value
return b();
// If b() has no return value, this is equivalent to calling b(), followed by
// return undefined;
I hope this will help.
Want to become a Java Expert? Join Java Certification now!!
Want to know more about Java? Watch this video on Java Course | Java Tutorial for Beginners: