Find out how many times a function has been invoked. | Frontend Interview Question
Question:
We've the following function greet, we need to find out how many times this function has been called.
function greet(){
console.log("Hello World!");
}
Approach-1
Using a global variable to maintain a count of the number of times this fun...
shivaansh.hashnode.dev2 min read