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 […]
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 […]
Implementing Pagination in PHP with MySQL
Implementing Pagination using PHP and MySQL – Introduction In order to understand how pagination works in php, we need to revisit how the LIMIT clause works in MYSQL queries. If you recall, we can fetch a predetermined number of records from a database table by using a query with a LIMIT clause as follows: SELECT […]