I have created a javascript file with some utility functions. How do I "include" to those functions from another javascript file? Also if I create a global variable inside one of my javascript files, can the utility functions see that variable if they are called?
Davife
0
Newbie Poster
Recommended Answers
Jump to PostSimply include all .js file's that you need in your document.
Here's simple demo to clear things out:
saying i have 3 .js files:
three.jsvar varThree = varTwo; // varThree variable is not accessible to two.js and one.js // But varThree can access variables …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.