I am a newbie in developing JavaScript libraries. I've a basic doubt on how to include a js
file into another js
file that is dependent on the former. For example, I'm building a javascript library that replicates the class structures present in the Server code.There are cases for example, where class B
is contained in class A
. I want to make a seperate js file to denote class B
and then include this in the definition of class A
. How do I go about this ?
I appreciate your help.
Thanks!