To filter an array in Javascript we can pass in a condition to the built in filter function.
Continue ReadingIn this tutorial we are going to complete the rest of the calculations required for the points table.
Continue ReadingIn this tutorial we are going to complete the rest of the calculations required for the points table.
Continue ReadingIn this tutorial we are going to create functions to calculate the total number of wins, losses, no results and points a team has for the tournament.
Continue ReadingIn this tutorial we are going to create a function to calculate when a team has won, lost or there is no result.
Continue ReadingIn this tutorial we are going to Create a Cricket Points Table in JavaScript.
Continue ReadingIn this tutorial we are going to create a React app that will speak the current temperature in the city we type in.
Continue ReadingTo convert an array into an object we will create a function and give it 2 properties, an array and a key.
Continue ReadingThe Speech Synthesis API has been around since about 2014 but still has not gained a huge amount of traction on many sites.
Continue ReadingUsually we will want to sort an array numerically or in alphabetical order but there are also some cases were we might need a custom sort order.
Continue ReadingIn some cases it is important to add a secondary sort to our array.
Continue ReadingTo sort an array of objects in javascript we need to pass the key we want to sort by into the sort Array.
Continue ReadingTo sort an array alphabetically in javascript you can use the sort function.
Continue ReadingTo sort an array numerically in javascript you pass a Compare Function to the sort array.
Continue Reading