Beginner JavaScript Tutorial – 8 – Functions with Multiple Parameters




Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Original source


49 responses to “Beginner JavaScript Tutorial – 8 – Functions with Multiple Parameters”

  1. <script type="text/javascript">

    function apples (one, two) {
    document.write(one + "is better than " + two + "<br />");
    apples ("muknerd", "Luna");
    }
    </script>

    // my code didn't work. I don't know why?

  2. Idk if you still read comments after these years but maybe someone else can answer my question: When writing JavaScript code in a seperate file than the html code, for example, in a "javascript.js" file. Why should I put the <script src=""> right before the end of the </body> and why does it not work if I put it right after <body>? I just can't get a view of why that is and I don't seem to find the answer i'm looking for, any informative answer is appreciated 🙂

  3. when i define function in the sheet, it doesn't gets highlighted. I tried every possible information that i collected it, but i failed. Since the keyword function is not getting its color blue ie: getting highlighted , the page execution is not complete. I am using Google Chrome for execution and i am on Vista (chrome is not updating itself since i am on Vista) any way out will be appreciated.

  4. how to handle button on functions with parameters?
    for eg: <input type="button" value="click" onclick="here("dude")">
    Here dude s d value to parameter of function here().

    bt it doesnt work

  5. These are wonderful tutorials and extremely helpful. I've been struggling with some JS concepts in an online course and I have to say these videos are much more effective for learning this language. Thanks for making them (:

  6. We have something in common, bucky roberts. I think coconut is more disgusting than just about anything. Even if I smell it. The very first thing when I am looking at nice pastries in a display is look for the coconut flavored stuff. It's bound to be there for some reason.

  7. using the previous button example and an alert box, this just not work at all, if u put the parameters in and deine their values or pass their values in i get a huge loop of unstopping alerts, and if i put the parametrs in the form, and input tags it destroys my code, anyone have solution?

  8. I know html and css but have been apprehensive about javascript. i've tried learning different ways….but these are the best lessons I've had on javascript so far….thank you for making these! The way you explain it I don't feel scared lol

  9. Dude… I thought what was in the parenthesis were PARAMETERS not VARIABLES (which are defined with var not()). So why r u calling it variables now? And somewhere between video 7 and 8 we learned that functions can be named? FoH going back to codeacademy

  10. I did all as you did but its not working . i tried removing <br /> nothing happened. screen appears blank.everything was working fine till this video. please help me 

Leave a Reply