Operation: Take Control of Your Money: 
Every successful mission starts with a plan. Your first assignment is to uncover where your money comes from, where it goes, and how to put every dollar to work. Master the basics of budgeting and build your first line of defense against financial chaos.

acten

Lesson 10: What Is Credit?

Watch at least 95% of the lesson video to unlock your Money Agent Quiz.

Mission Video Progress 0%

Keep watching! Your quiz unlocks after you watch 95% of the lesson.

🔒

Quiz Locked

Watch at least 95% of the video to unlock your quiz.

`; q.choices.forEach(function(choice,choiceIndex){ html += ` `; }); html += `
`; }); container.innerHTML = html; } /* ===================================== GRADE QUIZ ===================================== */ window.gradeLesson10Quiz = function(){ var score = 0; var unanswered = 0; questions.forEach(function(q,index){ var selected = document.querySelector( 'input[name="lesson10q' + index + '"]:checked' ); var feedback = document.getElementById( "lesson10feedback" + index ); if(!selected){ unanswered++; feedback.style.display = "block"; feedback.style.background = "#fff7ed"; feedback.style.color = "#9a3412"; feedback.innerHTML = " Please answer this question."; return; } var selectedAnswer = parseInt(selected.value); if(selectedAnswer === q.answer){ score++; feedback.style.display = "block"; feedback.style.background = "#ecfdf5"; feedback.style.color = "#166534"; feedback.innerHTML = " ✓ Correct!
" + q.explanation; } else { feedback.style.display = "block"; feedback.style.background = "#fef2f2"; feedback.style.color = "#991b1b"; feedback.innerHTML = " ✗ Not quite.
" + q.explanation; } }); var result = document.getElementById("quizResult10"); if(unanswered > 0){ result.style.display = "block"; result.style.background = "#fff7ed"; result.style.color = "#9a3412"; result.innerHTML = `

Almost Ready!

Please answer all 8 questions before completing your mission.

`; result.scrollIntoView({ behavior:"smooth", block:"center" }); return; } var percentage = Math.round((score / questions.length) * 100); result.style.display = "block"; /* ===================================== PASS ===================================== */ if(percentage >= 70){ result.style.background = "#ecfdf5"; result.style.color = "#166534"; result.innerHTML = `
🏆

Mission Complete!

${percentage}%

You answered ${score} out of 8 questions correctly.

Great work, Money Agent! You understand that credit is borrowed money, credit cards have limits, and borrowed money must be repaid.

Think before you borrow and always understand what you will need to repay!`; } /* ===================================== NOT PASSED ===================================== */ else { result.style.background = "#fef2f2"; result.style.color = "#991b1b"; result.innerHTML = `
🎯

Keep Training, Money Agent!

${percentage}%

You answered ${score} out of 8 questions correctly.

You need at least 70% to complete this mission. Review how credit works and try again.

`; } result.scrollIntoView({ behavior:"smooth", block:"center" }); }; /* ===================================== RESET QUIZ ===================================== */ window.resetLesson10Quiz = function(){ document.querySelectorAll( '#yfs-lesson10 input[type="radio"]' ).forEach(function(input){ input.checked = false; }); questions.forEach(function(q,index){ var feedback = document.getElementById( "lesson10feedback" + index ); feedback.style.display = "none"; feedback.innerHTML = ""; }); document.getElementById("quizResult10") .style.display = "none"; document.getElementById("quizSection10") .scrollIntoView({ behavior:"smooth" }); }; buildQuiz(); })();