Parameters and Arguments. Computer Programming Basics. Programming Course. The Basics of Programming. Learn to code. • Computer Programming Basics
Has you can see, even if a function returns values, i don't have to do anything, with the information it's return. But most of the time, you want to.
And again, if this look very unusable, this is what we are using very earlier, when we called, the prompt function in javascript.
Prompt is a built in java_script function.
He takes in, one argument, in this case a string displayed.
And then what ever return from that, is what we accepted to a variable called, name.
So both passing information in, passing in arguments, to be received has parameters in the function, and returning values.
Its a very core peace in any programming language, and something you will be using all the time.
#Parameters #Arguments #programming #javascript #freecourse #computerprogramming #coding #computerscience #sience #computers #programmer #programação #tutorial #education #howto #lecture #course #computerscience