List článků z kategorie: Kódování

What’s the difference between var, let, and const in JavaScript

In JavaScript, var, let and const are used to declare variables, but they have some key differences in terms of scope, hoisting, and mutability.

How to change URL without refreshing the page?

I have recently worked on a website with popups containing artwork and sharing functionality. This project involved changing url without reloading the page which was perfect use for the HTML5 History API. This API allows you to modify the browser’s history and manipulate the URL without causing a page refresh.