We have code reviews at work and I saw some code from another colleague where he declared a javascript function like below
newdev.prototype.render = function render(){ ///Codes }
instead of
newdev.prototype.render = function(){ ///Codes }
I’m not sure if it’s the same or if there’s a problem with his approach. I never seen this from the different examples online.
I’ve searched google and found some question here but it’s not what I am looking for.
I found this but it’s not what I was looking for
Javascript Prototype What is Correct?
Two ways of declaring methods in Javascript