Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5988675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:59:29+00:00 2026-05-22T22:59:29+00:00

Am trying to call a JS script from a function library in another script.

  • 0

Am trying to call a JS script from a function library in another script.

Eg. iceCreams.Js contains —>

iceCream(iceCreams){
var profit = .54

var Total = iceCreams * profits

return Total;

}

register.js contains –>

dailyTotals(wages, iceCreams){

var total = iceCream(iceCreams);

var profit = iceCreaps - wages

return wages;
}

Any help pointing me in the right direction?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:59:29+00:00Added an answer on May 22, 2026 at 10:59 pm

    Running the javascripts is done in client side and after rendering the full html. So, you have to add script tag for the library javascripts before consuming ones.
    Just add script tag for the library before the one for register:

    <script type="text/javascript" src="iceCreams.Js"></script>
    <script type="text/javascript" src="register.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to call a function in a Python script from my main C++
In the following I am trying call action script function from js function. What
I am trying to call call action script function from JS but i get
I’m trying to call Java script code from within the page_load function code, but
I am trying to call the function MyMethod from within a object but none
I am trying to call a servlet from jQuery's .ajax() function. At the moment
I am trying to call a javascript function from loaded local html file in
I have a javascript function from where I am trying to call the serverside
Okay, so right now I'm trying to call an Ajax function from a normal
Hi im trying call this function from an element, but the element id is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.