Tag: JavaScript

  • String Literal Cheat Sheet (Python, C#, JS)

    String Literal Cheat Sheet (Python, C#, JS)

    Python Python uses f-strings for string interpolation. Here’s an example: In this code, the variables name and age are inserted into the string using curly braces {}. C# C# uses string interpolation with the $ symbol. Here’s an example: In this code, the variables name and age are inserted into the string using curly braces {}. JavaScript JavaScript uses template literals for string interpolation. Template literals are…

  • 📅 How to Format and order dd-mm-yyyy Dates in jQuery DataTables 📅

    📅 How to Format and order dd-mm-yyyy Dates in jQuery DataTables 📅

    If you’ve ever worked with DataTables, you may have encountered issues with how dates are displayed. By default, DataTables will display dates in a format that may not be easily readable or sortable. However, with a few simple tweaks, you can format your dates to display exactly how you want them. First of all your…

  • 🗺️🔍🏞️ Understanding Leaflet Map Events and Local Storage: How to Save and Load Map Bounds 🗺️🔍🏞️

    🗺️🔍🏞️ Understanding Leaflet Map Events and Local Storage: How to Save and Load Map Bounds 🗺️🔍🏞️

    Leaflet is a powerful open-source JavaScript library that enables developers to create interactive maps with a range of tools and functionalities that can be customized to meet specific requirements. One of Leaflet’s essential features is the ability to save and load map bounds, which can be useful for various scenarios. In this blog post, we…

  • Working with Null dates in DateRange Picker.

    Working with Null dates in DateRange Picker.

    👋 Hey there! I recently worked on implementing a date range picker using the Daterangepicker plugin in my web application. It was a bit of a challenge at first, but I learned a lot from the experience. One of the main issues I encountered was how to handle null dates with moment.js library. I found…