In this video we're going to extend our knowledge of functions by looking at …useing arguments to solve a couple of different kind of problems that we would …normally address using functions. One is to take some data and modify it, …and the other is to get the answer to a question that we might need repeatedly. …So we'll start out by, looking at modifying some data. …Let's say I wanted to be able to take any string, and change it so it looked like …it was being said by Elmer Fud. So I have a function called Fudify that …does that. Be very quiet, I'm hunting rabbits.…
And this function will take that string and modify it. …Be very quiet, I'm hunting wabbits. And I can put in any string, you screwy …rabbit, and it will give it back to me. Wabbit tracks. …So, by having this function, I don't have to write the lines of code that would do …the processing on that string over and over again. …All I need to do is write the name of the function and pass it all the different …strings that I want. So how does that work? …
- Enabling Firebug and web inspectors
- Using a text editor
- Declaring and assigning a variable
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Understanding variable scope
Skill Level Beginner
Q: In "How to enable Firebug and web inspectors," at the Chrome Canary part, the author mentions going to the View menu, and then Developer. My Canary has no menu bar. The author uses a Mac, whereas I have Windows. How do I get to the same place?
A: Click the menu button at the top right of Chrome, select More Tools, and then choose Developer Tools.
1. Getting Started
Our friend, the text editor3m 35s
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
- 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.