Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var userInput = 10; //Get user input. I don't know how it's done in c.
- var userInput = document.formName.fieldName.value; //This is how you would get it in Javascript though.
- function mainFunction(userInput){
- //Do whatever you want to do with userInput.
- secondFunction(100);
- //Calling the secondFunction.
- function secondFunction(someValueIfNeeded){
- //do whatever with someValueIfNeeded variable;
- //This is second function.
- }
- }
- mainFunction(userInput); //calling the first function.
- Thebot.net by atheus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement