…Right, so I hope you enjoy that challenge. Let me show you what I did.…So, what I want to do first is create a self-executing function.…To do that I'm going to create a variable…called social here and assign it to a function.…And that function is just going to run some code.…And at the end of that, I want to go ahead and create these little open brackets.…That is going to call the function automatically.…But to that I want to pass this value from this object.…
So I want to instantiate this function.…This is going to run automatically with the social media object.…So once I have that, I'm going to need to create some variables.…These will be internal to this function only.…The first thing I want to do is create an output variable.…This is going to have my code.…Once my function finishes running, and in here…I am going to type in an unordered list.…So I'm going to need to close that,…eventually, but I need another variable next.…So I am going to type in a variable called mylist, and this variable is going to…
- What are functions?
- Using functions as objects
- Understanding call-and-apply invocation
- Using the arguments parameter
- Returning values
- Understanding hosting and variable scope
- Chaining module method calls
Skill Level Intermediate
1. Getting Started
2. Function Invocation
3. Using Functions
Next steps1m 28s
- 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.