You are viewing our Forum Archives. To view or take place in current topics click here.
Javascript implement a scripts function into another script
Posted:

Javascript implement a scripts function into another scriptPosted:

MitchWardle
  • Junior Member
Status: Offline
Joined: Apr 29, 201311Year Member
Posts: 65
Reputation Power: 2
Status: Offline
Joined: Apr 29, 201311Year Member
Posts: 65
Reputation Power: 2
Okay, so say I have a "createRectangle" function in a class called "rectangle.js". I want to call the "createRectangle" function from my "main.js" script. In Java you use something like "import rectangle.js" or something like that, how can i do this in Javascript/HTML5
#2. Posted:
7en
  • Wise One
Status: Offline
Joined: Aug 16, 201212Year Member
Posts: 598
Reputation Power: 29
Status: Offline
Joined: Aug 16, 201212Year Member
Posts: 598
Reputation Power: 29
When you say 'class' do you actually mean class or do you mean 'file'?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.