Programming Course. The Basics of Programming.
#22 Parameters and Arguments
Learn to code.
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.
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.