
Explore the fundamentals of functions in JavaScript, from standalone functions to methods, and learn how named blocks and procedures shape code across languages.
Install Node.js and a code editor, then download LTS version 14.16.1 from nodejs.org. Create a folder and open it in Visual Studio Code to set up your JS functions project.
Discover how Visual Studio Code upgrades your workflow with extensions like Code Runner to run node index.js, print hello world with console.log, using terminal commands and quick shortcuts.
Discover practical tips for using code runner, including clearing previous output before each run and executing only selected lines, while avoiding the pitfall of log is not defined.
Learn function declaration and invocation by building a greet function with parameters, string interpolation, and console log. Use return values to enable flexible greetings and follow the dry principle.
Learn to write arrow functions by assigning them to a variable in a new Function-anatomy2.js file. Discover concise syntax, implicit returns for single expressions, and when braces are needed.
Learn how JavaScript treats functions as first-class values by assigning them to variables, creating references like greetReference, and distinguish named vs anonymous functions and their syntax rules.
Learn how to define and pass multiple parameters in JavaScript, create range function with start and end parameters, handle optional parameters with if statements, and convert to an arrow function.
Explore immediately invoked function expressions and anonymous functions. Learn how to pass parameters, keep scope private, and avoid polluting the global object, with optional arrow function IIFEs.
Explore optional and default parameters in JavaScript, demonstrate the rest operator for variable arguments, and calculate a class average using arrays, loops, and array.isArray validation.
Explore functional JavaScript by implementing askRide, a function with a default pickup location and rest parameters for stops, printing the ride and ending with 'see you in the next one'.
Explore the basics of functional programming in JavaScript by learning how first-class functions treat functions as variables, enabling assignment, passing as arguments, and returning values.
Explore higher-order functions and first-class functions by passing function references as arguments to a run function, executing add, subtract, multiply, and divide, including anonymous and arrow functions.
Explore higher-order functions by building a city tax calculator using currying to return a final-price function for New York, Denver, and Chicago.
Master the map method in JavaScript by creating a times two array from numbers with a callback using current value, index, and array, including a concise one-line arrow function solution.
Use the map method to extract names and grades from an array of literal objects. Chain maps to add and rename properties such as approved and first period grades.
Learn how the array filter method works in JavaScript by applying predicates to select approved students and names starting with s, including using named and anonymous callback functions.
Explore the reduce method in JavaScript, compare it with map, and build a sum and an object with even and odd arrays using an initial value.
Use reduce to build a dash-prefixed groceries list from a fruits array, with an initial empty string and an index-based line break, then sum prices from objects.
Practice exercise using map, reduce, and filter to compute each student's GPA from grades, set approved flags, and display only approved students.
Hello, and welcome to our Foundational JavaScript Function Programming Course! I’m Arthur Bandeira, and I’ll be your instructor in this concise, but informative curriculum that will introduce you to the core concepts of JavaScript Functions.
In this course, we’ll cover topics and subjects that are of essential importance to every developer.
Since the advent of the procedural model, Functions have had a prominent role in software development, even to the extent of having a whole programming paradigm that revolves around them, which is known as Functional Programming.
The concepts are presented here through one of the most popular programming languages in the world —Javascript— and can be applied just as effectively to any object-oriented or multi-paradigm language.
We will cover some of the main concepts in Functional Programming and thoroughly explore the idea of Function and its practical applications, such as High-order and First-class Functions, as well as learn highly important methods like Map, Filter and Reduce.
In addition to all this free content, we included several challenges with their respective answers to further enhance your learning experience.
So, if you are interested in deepening your knowledge of JavaScript Functions and Functional Programming, this is the right course for you.