Javascript – Function declaration in the eval does not overwrite the previous one
Let's say we have code like below. The function a is declared twice. and we know the output in the console should be this is a2 because the second declaration of function a overwrite the previous function a. function a…