Advantages & disadvantages of declaring JavaScript functions inside objects.
Few days back, one of my friends was asked this question in his JS developer interview. There are several methods & coding techniques to write JavaScript functions. The most common approach is -
Method 1
function foo() {
// do something
}
...
·2 min read·pankajtanwar.hashnode.devUpdated Read the article
satish
Hi Pankaj..
It was really insightful... Can you blog more on Advanced JS topics. TIA