I have coded a script and I got confused where I should call the function. I know to call it from the outside of it, but I want to implement a process entry function before the calculate function. I am stuck. I am posting a piece of the coding I have don:
Code:
"use strict";
var $ = function (id) {
    return document.getElementById(id);
	//Asking for user entry.
};
 var processEntry = function() {
...