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
}
...
pankajtanwar.hashnode.dev2 min read
satish
Learner
Hi Pankaj..
It was really insightful... Can you blog more on Advanced JS topics. TIA