- [Instructor] Think about an object, … any object. … Mine is going to be a skier. … What I want to do is I want to build a function … that is going to return an object … that's going to return this skier. … So the skier will take in a name and a sound. … Something that they yell when they're excited about skiing. … And the skier will then return an object … that builds together the name … and the sound and a powder yell. … So powder yell just means if it's really snowy, … you're going to get excited and you have to yell. … So we're going to go ahead and use let yell … and I'll set that equal to this.sound.touppercase … so it'll take that sound string and make it uppercase. … And then we'll console log the message … using a template string. … Now when I call this function here on line 12, … I'm going to send it a name … and then I'll send it some sort of yell. … Now we see that skier is a function that we've created. … Let's go ahead and console log the skier name. … We have that and then we also can call …
This course was created by Eve Porcello. We are pleased to offer this training in our library.
- What is ECMAScript?
- Writing and searching strings
- Writing maps
- Destructuring arrays
- Searching arrays
- Creating objects
- Destructuring objects
- Iterating with the for/of loop
- Getting and setting class values
- Using ECMAScript functions
- Building and returning promises
- Using async/await syntax
Skill Level Intermediate
1. What Is ECMAScript?
What is ECMAScript?1m 44s
2. ECMAScript Variables and Data Structures
3. Arrays and Array Methods
Destructuring arrays1m 34s
4. ECMAScript Objects
5. ECMAScript Functions
- 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.