- [Instructor] Let's create a very simple file. We'll call it hello-world.js, and inside it we'll type some code with very basic ES6 syntax. We'll say const sayHello, and that'll be a function that takes our name, and with backticks says hello name. After we've typed this out, let's just call our function with our own name. Now, to run our code, make sure you're in the right directory and type npx babel-node, and then hello-world.js, and hit Enter, and we should see the result. That's all there is to it. That's how we'll be running all the code in this course. It's also worth noting that if you want to play around with this code without writing it in a file first, you can also just type npx babel-node without a file name, and hit Enter, and it'll open up this read a value print loop in our terminal where we can test out different statements. Keep in mind, also, that from now on when I run code in the course I'm going to be running it from the exercise files folder. The only difference that makes is that the file paths in my commands might be a little different, so when you're running your own code just make sure that the file path points to the correct file.
- The goal of functional programming
- Declarative vs. imperative programming
- Ensuring immutability
- Arrow functions in ES6
- Passing functions as arguments
- Mapping, filtering, slicing, sorting, and reducing
- Advanced functional concepts, including recursion
Skill Level Intermediate
1. Introductory Functional Concepts
2. First-Class Functions
4. Advanced Functional Concepts
5. Code Conversion Challenges
Next steps1m 10s
- 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.