How to Create JavaScript Functions | JavaScript User Defined Functions | JavaScript Tutorial. In this JavaScript tutorial you will learn how to build JavaScript functions.
A functions is used to create a block of JavaScript code which we can call upon at any time we want. JavaScript functions are also a great way to re-use code in order for us to save space in our file.
➤ GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful 🙂
Material for this lesson: https://www.patreon.com/posts/javascript-14-18676740
Original source
25 responses to “14: How to Create JavaScript Functions | JavaScript User Defined Functions | JavaScript Tutorial”
testExample() is witten in "camel case"
I have a BIG **FUNCTIONS** question if anyone can help me —
I am building a database driven web site.
When a person enters DATA into the database on FORM #1 & FORM #4 — entering that data is FREE to enter.
When a person enters DATA into the database on FORM #2 & FORM #3 — After Filling out the FORM then instead of pressing SUBMIT — They press NEXT — then they are taken to a PAYMENT PAGE FORM — SAY – PAYPAL or CREDIT CARD … Then when they FIll Out the Payment method they then press SUBMIT ( HOWEVER ) their data is NOT YET submitted into the database until PAYMENT CONFIRMATION APPEARS ((( THEN THEIR DATA IS SUBMITTED INTO THE DATABASE )))
I am using a LINK to the payment page when they press NEXT
AFTER THAT I DO NOT KNOW HOW TO CODE THE FUNCTION OF SUBMISSION TO DATABASE
CAN ANYONE HELP ME WITH THIS ???
So much helpful thank you sir so much thanks
definitely you need more viewers!
i made this and it does not work, help
var name = "Samuel";
function testExample(b) {
var greeting = "Hi! My name is " + b;
}
console.log(testExample(name));
In all honesty, I find the hands to be a distraction and put something over your image. Your content is very good, just pointing out that I'm trying to learn this material, not look at hands flipping around.
Great!!! Clear explanation
Awesome explanation, thanks Daniel
Loving this course!
I love these videos!
when would we need to use an immediately invoked function?
You are a phenomenal teacher! Keep up the good work!
Hi mate, nice tutorial!
Your IIFE's parantheses are not the same as instructed on MDN, how come both of these examples work and which one is the correct one to use?
https://developer.mozilla.org/en-US/docs/Glossary/IIFE
I love how u use your hands to explain things XD
Thanks dude.
Thanks a lot! Very helpful
function sora(ripper){
var sasa = "Hi and shutup " + ripper;
return sasa;
};
console.log(sora("names"));
var names = "Sam";
Here my prob is , the result shows
Hi and shutup names
What did i do wrong…
Thanks a lot! Can't wait to see the Hoisting Video 😀
Same picture every thumbnail doesn't really looks awesome dude
es6: var functionName = (paramater1, paramater 2) => {
return paramater1+parameter2
}
functionName("hi", " hello")
Daniel, hi me again….question…and i know i am not on the right video but i watch all your stuff lol…anyway….
for making a website responsive with the <meta name='viewport" content= yada yada yada….is this needed for Flexbox and CSS GRID also or just when we design the original way…with floats and clears? hope this is not a dumb question.
thanks a lot
what do you mean bij placeholder asigned to (a)……???
very helpful bro thank you so much for uploading this…
1st 😃😃