You have earned the Schema Design Optimization Credly Badge! You can access this badge by clicking View Your Badge.

Your Score: ${data.score}

`; showConfetti("success"); } else { resultContainer.innerHTML = `

Unfortunately, you did not pass your assessment

We don’t always get things right on the first try. Try taking the assessment again to earn your badge.

`; } } let confettiInterval; // Global confetti interval function showConfetti(type) { // Stop any existing confetti before starting a new one clearInterval(confettiInterval); confettiInterval = setInterval(() => { confetti({ particleCount: 70, spread: 100, origin: { y: 0.6 }, zIndex: 9999, colors: ["#ff0", "#0f0", "#00f", "#f00", "#ff6600"], gravity: 0.3, }); }, 1000); // Run confetti burst every 0.5 seconds // Stop the confetti after 5 seconds setTimeout(() => { clearInterval(confettiInterval); // Stops the interval }, 5000); } // Restart assessment function function restartAssessment() { location.reload(); // Reload page to start new assessment } -->