I'm filtering my data and should I use let in storing the percentage or would it cause problems in the long run?
I plan to use this in the graph too.
const filteredUsers= data.filter((v) => v.items?.selectedItem == "Car");
const total = filteredUsers.length
const items2 = users.filter(
(v) => v.items?.part1 == true && v.items?.part2 == true
);
let percentage = ((items2.length / total) * 100).toFixed(2);