No video

Javascript Functions & Parameters | Javascript Tutorial For Beginners

  Рет қаралды 234,561

developedbyed

developedbyed

Күн бұрын

Check out my courses and become more creative!
developedbyed.com
Getting Started With Javascript | Learn Javascript For Beginners
In this video series we are going to learn modern javascript from scratch. This video is recommended for anyone wanting to learn javascript the modern way with ES2015. No previous programming knowledge is required, so this video series will help you learn javascript as your first programming language.
We will also cover how to create functions and use them to write clean and scoped code in javascript. After we are going to create a simple function that is going to take a string and uppercase it for us once we invoke the function.
Finally we are going to look at 3 different ways of writing a function. The ES6 being my favourite, arrow function.
Things covered in this video:
How to create a function in javascript.
Different types of functions we can use.
How to add parameters in functions.
📔 Materials used in this video:
VSCode: code.visualstu...
🛴 Follow me on:
Twitter: / deved94
Github: github.com/Dev...

Пікірлер: 175
@opyTypo
@opyTypo 2 жыл бұрын
I was having such a hard time wrapping my head around what a parameter is doing. This helped a lot!
@WellActualllyyy
@WellActualllyyy Жыл бұрын
same herehaha
@UruvielNaomi
@UruvielNaomi Жыл бұрын
1 year later: same xD
@rigo117x7
@rigo117x7 Жыл бұрын
@@UruvielNaomi ME TOO
@magdalenasiekanska4836
@magdalenasiekanska4836 4 жыл бұрын
Finally found a teacher with whom I can learn JS and drink wine :))) Your style of teaching is just invaluable!!!
@markdominickcornejo6193
@markdominickcornejo6193 4 жыл бұрын
This is true
@mrnothing249
@mrnothing249 3 жыл бұрын
Eeeeeeeeeeeeeeeeeeeeeeeaaaasssssssyyyyyyyyyy Maggggy!
@amzzzc6700
@amzzzc6700 3 жыл бұрын
Love that!
@SHUBHAMRAJ-ll3vc
@SHUBHAMRAJ-ll3vc 3 жыл бұрын
I can't drink , only I can learn 😁
@jaycornboi6358
@jaycornboi6358 3 жыл бұрын
@Aero Dynamix If you don’t like watching then don’t watch. This guy is working to put out good content for people that want to learn. Not so people can hate.
@Zelinity
@Zelinity 4 жыл бұрын
You may not hold a teaching degree, but the way you use real-world examples and analogies shows that you know what works for learning - it really helps me understand the concept behind, for example, functions and other scripts. Thank you very much Ed!
@TheAnka95
@TheAnka95 Жыл бұрын
The way you teach makes learning functions much easier. Your overall mood and personality also helps a lot, so uplifting! Thank you 🙏🏽
@hermangachanja8838
@hermangachanja8838 11 ай бұрын
I'm upvoting this because it is actually true, I've gained confidence after learning just that one trick, and my passion for code has just been reignited...thanks a lot and keep up the good work bro.
@gustav213
@gustav213 4 жыл бұрын
This might have been the best intro into Functions I have seen so far! Thank you!
@eyaooo6378
@eyaooo6378 4 жыл бұрын
Finally someone who really explains JavaScript, I've been looking for u since I started learning programming. Thank you ❤️❤️❤️
@thomaswaligora8470
@thomaswaligora8470 4 жыл бұрын
The best teacher ever! PS. uppercase, lowercase - you mean camelCase :)
@jissjose1382
@jissjose1382 2 жыл бұрын
Finally i found a teacher who can teach me programming.I now believe that it isn't impossible to learn.your methodology is really awesome bro
@kardelenaydogan3793
@kardelenaydogan3793 11 ай бұрын
i really cant thank you enough. all other tutorials i've found assume you already know the basics and jump between concepts that are just too confusing for an absolute beginner. i was even starting to doubt my life-choices!! i cant thank you enough, hope you have the best day ever
@minipatatas4333
@minipatatas4333 4 жыл бұрын
Thank you so much! I was struggling with functions but I understand it so much more now.
@poisonedcupcake6860
@poisonedcupcake6860 2 жыл бұрын
It makes this Aussie lady very happy to find quality content I can add to my learning with, bravo!
@ukservin
@ukservin 5 жыл бұрын
your channel is awesome, you are doing a great job here, keep it going. 👏
@fuckitimsayingit3335
@fuckitimsayingit3335 4 жыл бұрын
Love how happy you are making your videos it makes me feel happy about learning via your videos haha
@cgweb2849
@cgweb2849 2 жыл бұрын
This is literally the best video explaining functions that Ive seen, I have been using Treehouse so I know a little JavaScript already but this, this could've saved me alot of time had I found it earlier.
@CloutGenie
@CloutGenie 5 жыл бұрын
This is amazing how well of a teacher you are...!!!!
@kellisha8364
@kellisha8364 3 жыл бұрын
You are the reason I understand functions! After tons of videos later. THANK YOU!
@neilhess2518
@neilhess2518 Жыл бұрын
You do a REALLY good job of explaining things clearly. Thank you! The thing at 8:20 - was EXACTLY what I was looking for. I was struggling to understand what the variables were repeating in various places and this cleared it up. 🙂
@user-se2yf8ci9u
@user-se2yf8ci9u 5 жыл бұрын
I've learned a lot from your videos and I really appreciate your work, keep it up.
@developedbyed
@developedbyed 5 жыл бұрын
Glad to hear that
@themindfulcog
@themindfulcog Жыл бұрын
Brother.. take my money! When I get home from this work trip I'm subbing to atleast 1 one of your courses.. maybe I'll just throw money at you idk all I do know is all other tuts make my brain hurt, yours make it feel big and smart and honestly what more can a guy ask for? Keep doing what you do.. please!
@remax110
@remax110 5 жыл бұрын
I like your style of teaching. I have been following your videos.
@johnhands6746
@johnhands6746 5 жыл бұрын
Thanks for these videos. These start off so simple and easy to understand. Best videos i have watched for beginners in JavaScript!
@devblaza6746
@devblaza6746 4 жыл бұрын
I have been watching many channels so far. But dude you explain it so easy and precise. Thank you alot.
@dera0623
@dera0623 4 жыл бұрын
In my 4 years of college as an IT until now I'm having a hard time to understand this but in this one video I already got it. Thanks Ed. Auto subscribe
@stephenondieki2200
@stephenondieki2200 4 жыл бұрын
They say programmers are not good communicators however I want to commend you for an awesome job you have done. I'm a novice in programming but this has inspired me.
@leticiadamasio5784
@leticiadamasio5784 Жыл бұрын
It was easy to understand those concepts in the way you were explaining. Thank you so much!
@MichaelJosephGFX
@MichaelJosephGFX 2 жыл бұрын
Thank you! It can be difficult wrapping my head around functions and parameters. Your explanation helped a lot.
@treadytread583
@treadytread583 2 жыл бұрын
Wow! Just Wow! I have a full understanding now. Sheeeeesh!! Thank you Dev Ed!
@ritchiepetithomme7546
@ritchiepetithomme7546 Жыл бұрын
You saved my life, thank you.
@user-gl6gd6tf5k
@user-gl6gd6tf5k Жыл бұрын
Amazing explanation! You have a way of reaching people
@yogendarkhairari2399
@yogendarkhairari2399 3 жыл бұрын
You are the best and most nice teacher ever
@lowki2309
@lowki2309 5 жыл бұрын
thank you men for your help you are my teacher i hope you the best and all luck
@Yayode_Akuafo_Patawah1145
@Yayode_Akuafo_Patawah1145 Жыл бұрын
Great Teacher U made it easy to understand Thanks a lot 😊
@nicolassalascorrea
@nicolassalascorrea 5 жыл бұрын
yeahhh what a great and simple explanation thanks
@moroumenos
@moroumenos 2 жыл бұрын
One more sub for you! Thank you so much Ed! Thanks to you, I now see why functions and their parameters were driving me crazy. And yet, it's so simple. Thank you again.
@vela-6
@vela-6 4 жыл бұрын
Ah, finally someone who can actually explain function invoking. Thanks!
@fonncatalina6464
@fonncatalina6464 4 жыл бұрын
Hello Ed! Thank you for your tutorial! Here is my homework from this topic, I found that declare a const variable inside the function toUpper(text) isn't necessary? I just type: return text.toUpperCase(); then console log(toUpper(some variable)); then it works! Am I right or I have to type exactly like you did? Thank you!
@DEchrisGR
@DEchrisGR 3 жыл бұрын
For the record: thats right! (Here as in any other language I know.) You can always pass the value direct without temporally saving it to var. In fact your way is the more cleaner approach and thats why its used so much.
@Tooxcade
@Tooxcade 3 жыл бұрын
Honestly this is the best explanation ever. THANK YOU.
@mohamedwalidrebai2300
@mohamedwalidrebai2300 3 жыл бұрын
bro i love you you know your tutos are the best in youtube whene i ended all your tutorials i'm like i have all the power and now i'm realy good in html css jquery thxxxxxxx
@keplerpierre7783
@keplerpierre7783 5 жыл бұрын
i have critique: instead of creating a variable and .toUpperCase-ing that you could've console.log(text.toUperCase); so the code would be simple.
@khushichudasama7468
@khushichudasama7468 9 ай бұрын
thankyou ed, your way of explaining is incredible, i had a question. why did you use const in toUpper inside the function ? do we need to specify very time we use an inbuilt function in function?
@Alexander-re8vz
@Alexander-re8vz 3 жыл бұрын
Bro YOU REALLY DESERVE 15M SUBS MAN! 10/10 best teacher
@IsometricLight
@IsometricLight Жыл бұрын
Great video man!!!!!
@oumoutoure3513
@oumoutoure3513 4 ай бұрын
thanks a lot Ed!
@madhurisharma5424
@madhurisharma5424 3 жыл бұрын
This tutorial is awesome. Teaching strategy is too good.
@carlosalvarez9944
@carlosalvarez9944 2 жыл бұрын
Call me dumb but I had to watch like 3 or 4 videos until I watched your tutorial to understand this concept. Subscribed!
@zytrik1
@zytrik1 2 жыл бұрын
Man this is lovely, thank you so much. Now I understand.
@gunshotmike
@gunshotmike 3 жыл бұрын
You are a star!!!!!!
@lianawarnakulasooriya7243
@lianawarnakulasooriya7243 3 жыл бұрын
THANK YOU!!! Dude my teacher sucks and this video helped me soooo much
@bhavikakapadia2462
@bhavikakapadia2462 5 жыл бұрын
your tutorial is awesome. Thank you so much.
@lovergurlarchie4025
@lovergurlarchie4025 2 жыл бұрын
Great tutuorial.. thanks
@sebipoiana1768
@sebipoiana1768 2 жыл бұрын
This video is great Ed! Fantastic representation of Functions! :) I did we have to create the new 'upperCased' variable inside the toUpper function? I noticed that the name variable did not turn into uppercase, by just declaring the 'text' variable and using global scope. Can we only use outside variables only by declaring new ones inside functions?
@cristhianmorales9175
@cristhianmorales9175 3 жыл бұрын
THIS IS GREAT. I bet it be better if I understood.
3 жыл бұрын
Great teacher, great courses ! Thank you very much.
@haidyibrahim9426
@haidyibrahim9426 3 жыл бұрын
This was very helpful. Thank you!
@AyeBro_NotCool.
@AyeBro_NotCool. Жыл бұрын
I finally understand functions, thank you
@luisperdomo4058
@luisperdomo4058 2 жыл бұрын
super informative and easy man I learned more from this guy in 15 mins than some teachers that teach a whole course!
@frankliva7438
@frankliva7438 3 жыл бұрын
thanks alot mate!!
@jreezy6047
@jreezy6047 2 жыл бұрын
Very helpful! Thank you so much.
@awesomaa1
@awesomaa1 Жыл бұрын
i was really struggling in programming i cant even understand it then fortunatly somehow i found your udemy crack courses(when i willl be a rich , i will pay you for it) which make my life super easier . Thanks dev ed u r really a magician
@kyleoliver8142
@kyleoliver8142 3 жыл бұрын
Thank-you so much for the time you have taken to create this course for us, I truly appreciate it alot. When I type in toUpper(name); the "name" has a line through it. Should it do that or am I messing up somewhere?
@SoloAnn
@SoloAnn 2 жыл бұрын
When would you use parameters?In what case are parameters needed? I noticed, not all functions need parameters.
@webprogrammer4581
@webprogrammer4581 2 жыл бұрын
Thanks man, its very useful to us 😁
@zachereywilliams19
@zachereywilliams19 Ай бұрын
at the end when you show second and third option for functions do you have to put parameters twice like the normal way?? you typed asdasd is that your console.log() or parameters? and do you have to put your parameters again outside the brackets? to log them?
@co850
@co850 4 жыл бұрын
How will I know when to use const or let?
@evonevon6220
@evonevon6220 4 жыл бұрын
Looks like a Friendly good Teacher 😘
@latinstuff1
@latinstuff1 2 жыл бұрын
this is amazing ! thank you so much
@peirdenaasem
@peirdenaasem 5 жыл бұрын
Very interesting! You are doing a great job!
@htetbala8945
@htetbala8945 3 жыл бұрын
Thank You for teaching!!
@suleymanismaylov3014
@suleymanismaylov3014 3 жыл бұрын
your teach method amazing man))
@GandgetFence
@GandgetFence 4 жыл бұрын
Thanks! This just clicked for me. 🔥
@allanlandin5038
@allanlandin5038 2 жыл бұрын
what is the difference between, using parameters and declaring the variables in global scope and then calling them inside the function? is it would demand more memory?
@evonevon6220
@evonevon6220 4 жыл бұрын
I love your teaching style well
@muammalsattar9757
@muammalsattar9757 4 жыл бұрын
Really love your video Thank you 😊
@nikolozmacharashvili1212
@nikolozmacharashvili1212 3 жыл бұрын
Thank You
@deanclancy6448
@deanclancy6448 3 жыл бұрын
Best JS tutorials. Thank you,
@rennesinternet3872
@rennesinternet3872 4 жыл бұрын
i love a lot your VsCode UI, what are you using here ?
@Giigigi1122
@Giigigi1122 4 жыл бұрын
Dude, thank you so much!
@samuelokeke3149
@samuelokeke3149 2 жыл бұрын
Love u man
@Gwize
@Gwize 3 жыл бұрын
Great work bro thx!
@AE-yr6mo
@AE-yr6mo 3 жыл бұрын
Do you know if it's possible to create a constructor function that takes an optional / unlimited set of parameters?
@mayurgdv7511
@mayurgdv7511 3 ай бұрын
Which theme you used in this video please reply 🙏🤔
@shrimpXD
@shrimpXD 3 жыл бұрын
what theme was used it looks nice
@esteban578
@esteban578 3 жыл бұрын
What's the shift + alt + arrow down shortcut he does at 3:40 for the mac?
@krishnachakraborty9053
@krishnachakraborty9053 2 жыл бұрын
in the last way of writing function how do i write function name like function adder. where to add adder that you have done in the addition function.
@chirilovcinicov8216
@chirilovcinicov8216 2 жыл бұрын
Is it required for web development this part of js? Or web dev works just with the dom, and website interactivity.
@matsanity
@matsanity 5 жыл бұрын
is this correct? : function toUpper(text) { const upperCased = text.toUpperCase(); console.log(upperCased); } const toUpper = () => { sfsfs; }; I get a "Uncaught SyntaxError: Identifier 'toUpper' has already been declared" in the console log. #n00b
@ikennamanagwu9646
@ikennamanagwu9646 3 жыл бұрын
Hey Dev Ed!!! I love your videos men, you are a good teacher. Though I have a question. Say you have a function and your function that takes a parameter called checkTrue(arg). Now within this function are two conditions the 1st runs if the parameter IS A BOOLEAN VALUE OF TRUE and the else runs if parameter IS A BOOLEAN OF FALSE. now how do I pass these boolean into the function param if I'm calling this function directly from my html with an onchange attr. I have to call the function directly, do I just call the function and pass just True of False in i.e not a string a boolean ??. ** Frontend troubles ***
@henrycode679
@henrycode679 8 ай бұрын
Pls what do we call sometime like this e. G Object x=new object(... Param) //the dot dot
@nefelikaranikola4137
@nefelikaranikola4137 3 жыл бұрын
you are too cute too be true! sorry i meant good! xD best and most approchable teacher on yt so far! thank you and keep it up!!
@ritzmusicstudio1075
@ritzmusicstudio1075 3 жыл бұрын
Hey I wanna know what's toUpperCase??? What's the function.??
@user-uk3ns3rz6o
@user-uk3ns3rz6o 2 жыл бұрын
Sorry for late answer, will post it anyway for other peapole that might reading this :) toUpperCase is an function that are built-in into javascript. To be more exactly: all string have an prototype linked to them, and inside there it will have some "method" that you can use. If you write this code --> console.log(String.prototype) you can then see all type of method you can use for any string keyword, like let test = 'Nyaa'. You can find more info about that in w3schools
@pichit.raetai
@pichit.raetai 4 жыл бұрын
Thank you
@levand2391
@levand2391 Жыл бұрын
This teacher is human to human , not machine to human or human to machine
@derenjeager314
@derenjeager314 4 жыл бұрын
hii! nice video! very informative!! can u please solve this doubt of mine.... in a function I have seen people put like function trial(obj){}. here, obj has some definite meaning or is like just some word.. pls reply asap
@jyotibalodhi2698
@jyotibalodhi2698 4 жыл бұрын
obj just holds the value which has been passed at the time of func invoking. For eg: function trial(obj){...} trial(5); here obj holds the value 5 :)
@chris-zu6sf
@chris-zu6sf 4 жыл бұрын
How do you use functions in an 'if and else' statement in javascript? 'If' condition will execute a function and 'else' will execute different function.
@faribadadko5694
@faribadadko5694 4 жыл бұрын
well done!
@jamesmassa1999
@jamesmassa1999 4 жыл бұрын
can you do a tutorial on how to stop pop-ups?
@ruebenhales8558
@ruebenhales8558 2 жыл бұрын
why did typing logger(); at the bottom cause the print functions to print i dont understand.
@GhostbusterJeffrey
@GhostbusterJeffrey 3 жыл бұрын
console.log('Thank you very much') ;
@mrstakes1
@mrstakes1 3 жыл бұрын
hey how do get google and vscode to look like that?
@justbeginner4012
@justbeginner4012 4 жыл бұрын
im not native english ,, but i can full understand what you say amazing
#36 What are Parameters and Arguments? | JavaScript Full Tutorial
16:00
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 48 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 28 МЛН
JavaScript Function - What's your Function?
12:27
Fireship
Рет қаралды 182 М.
The different types of JavaScript functions explained
14:47
Kevin Powell
Рет қаралды 40 М.
How to MASTER Javascript FAST in 2023
12:49
Internet Made Coder
Рет қаралды 355 М.
Parameter vs Argument for Beginners | JavaScript Concepts Explained
7:52
#34 What are JS Functions? | JavaScript Full Tutorial
13:52
Dev Dreamer
Рет қаралды 13 М.
Why I Don’t Use Arrow Functions With const/let
6:48
Web Dev Simplified
Рет қаралды 185 М.
Javascript If Else Statements | Javascript Tutorial For Beginners
11:41
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 945 М.
Javascript Variables & Data Types | Javascript Tutorial For Beginners
15:13
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 48 МЛН