Explore arguments or parameters and the way to pass data into a function.
- [Instructor] In this video, we're going to…extend our knowledge of functions by…looking at using arguments to solve…a couple of different kinds of problems.…One is to take some data and modify it.…The other is get the answer to a…question in a way we'll need to use repeatedly.…So, we'll start out by looking at…modifying some data.…Let's say I want to be able to take any string and…change it so it looked like it was being said…by Elmer Fudd from the Bugs Bunny cartoons.…I have a function called fuddify that will do this.…Let's see, how 'about…"Be very quiet, I'm hunting rabbits." and…it comes back with, "Be vwey quiet,…I'm hunting wabbits."…Okay, I can put in any string.…
Like, how 'about, "You screwy rabbit."…"You scwewy wabbit."…Yep, so by having this function,…I don't have to write the lines of code…that would do the processing on these strings…over and over again.…All I need to do is invoke the function and…pass it all the different strings I want.…So, how does it work?…Let's take a look at the definition…of this fuddify function.…
- Using a text editor
- Declaring and assigning variables
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Promises, async, and await
Skill Level Beginner
1. Getting Started
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
7. More Advanced Pieces
Next steps3m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.