Introduction Arrow functions were introduced in ECMAScript 6 (ES6), which was finalised in June 2015. ECMAScript 6, also known as ES2015, brought several new features and enhancements to the JavaScript language, and arrow functions were one of the notable additions. Arrow functions provide a more concise syntax for writing functions, especially for short and simple […]
functions
An introduction to functions in Javascript – Part 2
Function Parameters and Arguments Quick recap on simple functions Previously in Part 1 of An introduction to functions in Javascript, we looked at the basics of declaring functions as well as calling or invoking them. We also touched on passing arguments as values to a function when invoking it. The important thing to remember is […]