I have a doubt can I ask you sir

Sir I want to know one thing when we create a external javascript file and another create javascript file then we link each other the files so how to get error in another page