I have two JavaScript files that contain a jQuery function with the same name $ ().
How can I distinguish between two equally named functions?
Rename it.
$ = typeof $ !== 'function' ? $ : $foo;
Short answer: you cannot. All js files live in the same namespace.
, jQuery , , . , , ?
, . , , dosomething(), myproject.dosomething()
Thus, this is a specific project, and you will avoid having two identically named functions, even if you include files that you did not develop yourself.