Passing Arguments to a Javascript Function
· ☕ 2 min read
You can pass one or more values to a function, but that has been made much easier and streamlined with the advent of ES2015 - 2018 standards.
Let’s start with a simple function.
1 2 3 4 5 6 function sum(x, y) { return x + y; } const summer = sum(3, 6); console.