Below on Codepen is an example of 4 products and on the left are the filter options to filter by Name, Price and a range slider to show products that are less than the amount of price you select.
And there’s not any JavaScript code expect one for the value of Slider Range and wanted to ask you about this project some question.
Should I use parseFloat for the price to sort them by highest price or do like
function(a, b){return a-b})
.
If anyone could give me any answer what should I use because I am a beginner to JS and would really appreciate that
https://codepen.io/beh4r/pen/ZNeLPa