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 […]
Learn Javascript Fundamentals
A quick guide to Javascript Promises
Introduction This brief but informative article gives you a quick guide to Javascript Promises. In JavaScript, promises are a way to handle asynchronous operations, such as fetching data from a server, reading a file, or any other task that may take some time to complete. Promises provide a cleaner and more readable way to work […]
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 […]
An introduction to functions in JavaScript – Part 1
What is a Function? A function is nothing more than a series of statements which are grouped together to perform a specific task. If there is a task that needs to be performed numerous times inside of a program it is better to define a function for that task. Another way to think of a […]