const TOPICS = [ { title: 'Showing up (and what to do if you can\'t)', body: `

Being on time matters more than almost anything else early on — it's the easiest way to build trust fast. Aim to arrive 5–10 minutes before your shift starts, not exactly on time.

If you're going to be late or can't make a shift: call or message your manager as soon as you know, not right when the shift starts. Say what happened and when you'll arrive (or that you can't come in). You don't need to over-explain — "I'm not feeling well and won't be able to make my shift today, sorry for the short notice" is enough.

`, }, { title: 'Talking to your manager', body: `

Texting is usually fine for quick things (running 5 minutes late, calling in sick) if that's how your workplace communicates. For anything bigger — asking for time off, raising a problem, quitting — a short in-person conversation or phone call is better than a text.

It's okay to ask questions. Managers expect new employees to ask things like "where do I find X" or "can you show me how to do Y again." Asking once is normal; it shows you're paying attention.

`, }, { title: 'Messing up is normal', body: `

Everyone makes mistakes, especially in the first few weeks. The difference between a small deal and a big deal is usually how you handle it: tell someone as soon as you notice, don't try to hide it, and don't spiral about it. "Hey, I think I made a mistake with X, here's what happened" is exactly what a good employee sounds like.

If a manager corrects you or gives feedback, the best response is simply "Got it, thanks" — not an apology essay and not arguing. You can ask a clarifying question if you're unsure what to change.

`, }, { title: 'Phones and breaks', body: `

Keep your phone put away and silenced during your shift unless it's break time or your job requires it (like a delivery app). Checking your phone a lot in front of customers or a manager is one of the fastest ways to look unreliable, even if you're a hard worker.

Know your break rules (paid vs unpaid, how long, when) — ask on day one if it isn't explained.

`, }, { title: 'What happens with your first paycheck', body: `

Your first paycheck will usually be smaller than you expect because of taxes taken out automatically — this is normal and not a mistake. When you're hired, you'll fill out a W-4 (tells your employer how much tax to withhold) and an I-9 (proves you're allowed to work in the US, usually needs an ID like a driver's license or passport).

Most employers offer direct deposit (paycheck goes straight to your bank account) instead of a paper check — you'll usually need to provide a voided check or your account/routing number.

`, }, { title: 'Reading a paystub & saving', body: `

A paystub shows your gross pay (before taxes), deductions (taxes, maybe benefits), and net pay (what actually hits your bank account — this is the number that matters for your budget). Keep your paystubs; you'll want them for things like renting an apartment or filing taxes.

A simple habit that helps a lot: when you get paid, move a small amount (even $10–20) to savings before you spend anything else.

`, }, { title: 'Interview basics', body: `

Dress a notch nicer than what you'd wear to the job itself — clean, plain clothes are always safe. Bring a printed copy of your resume even if you applied online, and arrive 10 minutes early.

Common questions to have a short answer ready for: "Tell me about yourself," "Why do you want to work here," and "Do you have any experience like this?" (Answer honestly — enthusiasm and reliability matter more than a long resume.) It's also normal, and a good sign, to ask a question back, like "What does a typical shift look like?"

Afterward, a short thank-you text or email the same day ("Thanks for the interview, I'm excited about the opportunity") is a small thing that makes a real difference.

`, }, { title: 'Giving notice / leaving a job', body: `

If you decide to leave a job, giving two weeks' notice in writing (a short email or note works) is the standard, respectful way to do it — it keeps the door open for a good reference later. Tell your manager directly before telling coworkers.

`, }, ]; const QUIZ = [ { q: 'You\'re going to be 15 minutes late to your shift. What should you do?', options: [ 'Show up late without saying anything, it\'s only 15 minutes', 'Call or text your manager as soon as you know, before your shift starts', 'Wait until you arrive to explain in person', ], correct: 1, explain: 'Letting your manager know as early as possible — even for something small — is the single biggest trust-builder in a new job.', }, { q: 'Your first paycheck is smaller than the hours × pay rate you expected. Why?', options: [ 'Your employer probably made a mistake', 'Taxes and other deductions are automatically taken out', 'You only get paid in full on the second paycheck', ], correct: 1, explain: 'Federal/state taxes (and sometimes other deductions) come out automatically based on your W-4 — this is normal, not an error.', }, { q: 'What is a W-4 form for?', options: [ 'Proving you\'re allowed to legally work in the US', 'Requesting time off', 'Telling your employer how much tax to withhold from your paycheck', ], correct: 2, explain: 'The W-4 sets your tax withholding. The I-9 is the one that proves work eligibility, usually with an ID.', }, { q: 'You made a mistake at work and no one noticed yet. What\'s the best move?', options: [ 'Tell your manager what happened as soon as you notice', 'Stay quiet since no one noticed', 'Fix it quietly and never mention it', ], correct: 0, explain: 'Speaking up early is almost always better than being caught later — it shows honesty and is usually a smaller deal than it feels like.', }, { q: 'Your manager corrects how you\'re doing a task. What\'s a good response?', options: [ 'Explain in detail why you did it that way', '"Got it, thanks" — and ask a clarifying question if needed', 'Apologize repeatedly', ], correct: 1, explain: 'A short, calm acknowledgment is exactly what\'s expected. Feedback is normal and not a sign you\'re doing badly overall.', }, { q: 'What should you bring to an in-person interview?', options: [ 'Nothing, everything was already submitted online', 'A printed copy of your resume', 'A list of salary demands', ], correct: 1, explain: 'Bringing a printed resume, even if you already applied online, is a small thing that shows preparation.', }, { q: 'How should you dress for an interview?', options: [ 'Whatever you\'d wear on a normal day off', 'Exactly what you\'d wear once hired for the job', 'A notch nicer/cleaner than what the job itself requires', ], correct: 2, explain: 'Dressing slightly nicer than the job\'s day-to-day dress code is a safe default for any interview.', }, { q: 'It\'s the middle of your shift and it\'s slow. Is it okay to check your phone?', options: [ 'Yes, as long as no customers are around', 'Only during your official break, unless your job requires phone use', 'Yes, phones are fine anytime as long as work still gets done', ], correct: 1, explain: 'Being seen on your phone outside of breaks is one of the fastest ways to look unreliable, even if the work is getting done.', }, { q: 'What does "net pay" mean on a paystub?', options: [ 'Your pay before any taxes or deductions', 'The amount that actually gets deposited into your bank account', 'Your hourly rate', ], correct: 1, explain: 'Net pay is what actually lands in your account after taxes/deductions — the number to use for budgeting.', }, { q: 'You want to quit a job. What\'s the standard, respectful way to do it?', options: [ 'Just stop showing up', 'Tell coworkers first so they can cover shifts', 'Give about two weeks\' notice, told to your manager first', ], correct: 2, explain: 'Two weeks\' notice is the standard and keeps the door open for a good reference later.', }, { q: 'A common interview question is "Tell me about yourself." What\'s the best approach?', options: [ 'Give your full life story', 'A short, honest answer focused on why you\'d be reliable and interested in the role', 'Ask to skip the question', ], correct: 1, explain: 'Keep it brief and relevant — enthusiasm and reliability matter more than a polished script.', }, { q: 'Is it okay to ask a manager to show you how to do something a second time?', options: [ 'No, you should figure it out yourself after being told once', 'Yes, asking questions when you\'re new is normal and expected', 'Only if it\'s an emergency', ], correct: 1, explain: 'New employees are expected to ask questions. It\'s much better than guessing and getting it wrong.', }, { q: 'What is direct deposit?', options: [ 'A type of employee bonus', 'Your paycheck being sent straight to your bank account instead of a paper check', 'A tax form', ], correct: 1, explain: 'Direct deposit sends your pay directly to your bank account — most employers offer or require it.', }, { q: 'After a good interview, what\'s a small thing that makes a real difference?', options: [ 'Nothing further is needed', 'Calling every day to check on the decision', 'A short thank-you text or email the same day', ], correct: 2, explain: 'A brief, same-day thank-you note is easy to do and genuinely stands out.', }, { q: 'What is the I-9 form for?', options: [ 'Proving you are legally allowed to work in the US', 'Setting your tax withholding', 'Requesting a schedule change', ], correct: 0, explain: 'The I-9 verifies work eligibility, usually using an ID like a driver\'s license or passport.', }, ]; function renderTopics() { document.getElementById('topics').innerHTML = TOPICS.map((t, i) => `
${t.title} ${t.body}
`).join(''); } function renderQuiz() { document.getElementById('quiz').innerHTML = QUIZ.map((item, qi) => `

${qi + 1}. ${item.q}

${item.options.map((opt, oi) => ` `).join('')}

${item.explain}

`).join(''); } document.getElementById('submit-quiz').addEventListener('click', () => { let correctCount = 0; let answeredCount = 0; QUIZ.forEach((item, qi) => { const block = document.querySelector(`.quiz-q[data-qi="${qi}"]`); const picked = block.querySelector(`input[name="q${qi}"]:checked`); const options = block.querySelectorAll('.option'); const explain = block.querySelector('[data-explain]'); options.forEach((optEl, oi) => { optEl.classList.remove('correct', 'incorrect'); if (oi === item.correct) optEl.classList.add('correct'); }); if (picked) { answeredCount++; const pickedIndex = parseInt(picked.value, 10); if (pickedIndex === item.correct) { correctCount++; } else { options[pickedIndex].classList.add('incorrect'); } explain.classList.add('show'); } }); const banner = document.getElementById('score-banner'); if (answeredCount < QUIZ.length) { banner.innerHTML = `
Answer all ${QUIZ.length} questions to see your score. (${answeredCount}/${QUIZ.length} answered so far)
`; return; } const pct = Math.round((correctCount / QUIZ.length) * 100); let msg; if (pct >= 85) msg = `Nice work — ${correctCount}/${QUIZ.length} (${pct}%). You're ready for a first job.`; else if (pct >= 60) msg = `Good start — ${correctCount}/${QUIZ.length} (${pct}%). Re-read the highlighted topics above for the ones you missed.`; else msg = `${correctCount}/${QUIZ.length} (${pct}%) — no worries, this is exactly what the topics above are for. Skim them again and try once more.`; banner.innerHTML = `
${msg}
`; banner.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }); renderTopics(); renderQuiz();