It can use the function keyword to create a copy of…an object with the variables from the function as its properties.…So let's take a look at how you would do that.…I'll come over to my code here, and remember…I have the index.html file just calling the script file.…And here's my script.js document.…So what we're going to do is create…a variable called Dog, and this is going to be a function.…Now this Dog function is going to just…have two variables called name and also breed.…
- 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.