Object destructuring is a syntax in JavaScript that allows you to extract values from objects and assign them to variables in a straightforward way. This enables easy access to data stored in objects without having to reference the object’s properties each time.
Read More Object destructing in JavaScriptCategory: JavaScript
JavaScript short tutorials
Multiple sliders on one page with simple jQuery slider
If you’re reading this post then you probably have problem with slider, that don’t work correctly if occurs several times on the same page. I have a solution to you – simple jQuery slider, that you can put on page as many times, as you want and it will be work as it should.
Read More Multiple sliders on one page with simple jQuery sliderjQuery infinite scroll image gallery
Infinite scroll gallery is a simple and difficult task at the same time. It all depends on how you want to display it. For start, let’s write the basic assumptions:
Read More jQuery infinite scroll image galleryWhat is hoisting in javascript?
Every junior front-end developer should know what hoisting is. This issue can be easily understood, so if you have not heard of it before, you can quickly catch up:
Read More What is hoisting in javascript?How to check if string contains substring in javascript
Depending on what you currently want to achieve, you can use several solutions to check if the string contains substring:
Read More How to check if string contains substring in javascriptHow to copy an array in javascript?
We have array [“javascript”, “jest”, “fajny”, 1, 2, 3]. Let’s see what’s happends, if we want to copy it and assign it do variable, and next modify it:
Read More How to copy an array in javascript?How to sort array of numbers in javascript?
By sorting an array of numbers and using the built-in sort() function, you’ll definitely notice that, by default, sorting doesn’t go from smallest to largest, but alphabetically.
Read More How to sort array of numbers in javascript?