You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
565 B
14 lines
565 B
document.addEventListener('DOMContentLoaded', function() {
|
|
const dailyWorkouts = [
|
|
{ description: "Running", duration: "30 minutes" },
|
|
{ description: "Yoga", duration: "1 hour" },
|
|
{ description: "Strength training", duration: "45 minutes" }
|
|
];
|
|
|
|
const workoutPlanElement = document.getElementById('workout-plan');
|
|
dailyWorkouts.forEach(workout => {
|
|
const li = document.createElement('li');
|
|
li.textContent = `${workout.description} - ${workout.duration}`;
|
|
workoutPlanElement.appendChild(li);
|
|
});
|
|
});
|