var items = [
["crunches", 30],
["crunches", 45],
["squats", 30],
["squats", 45],
["lunges", 30],
["lunges", 45],
["wall sits", 30],
["wall sits", 45],
["push ups", 30],
["push ups", 45],
["leg ups", 30],
["leg ups", 45],
["jumping jacks", 30],
["jumping jacks", 45],
["sumo squat", 30],
["sumo squat", 45]
];
I'm walking through this array, removing an element each time, but i want to take the number value from each item and make that the delay for a setInterval outside of the function. Is this even possible?
Apologies for the poor JS, still learning a bit here.