Category: JavaScript

Get current Geolocation using JavaScript - Clue Mediator

Get current Geolocation using JavaScript

Today we’ll show you how to get current geolocation using JavaScript. In this small article, we will use JavaScript’s Geolocation API to get the latitude and longitude of the visitor’s...

Calculate age in years using JavaScript - Clue Mediator

Calculate age in years using JavaScript

In this short article, we will show you how to calculate age in years using JavaScript. We’ll learn how to calculate the user’s age from their date of birth and...

Sort an array by Date in JavaScript - Clue Mediator

Sort an array by Date in JavaScript

In this article, we’ll show you how to sort an array by date in JavaScript. When you are working with an array of objects that contains a date field and...

Convert XML to JSON using JavaScript - Clue Mediator

Convert XML to JSON using JavaScript

Today we’ll show you how to convert XML to JSON using JavaScript. In this article, we will show you how to convert XML strings to JSON using the xml2json script....