Variables & data types must
var / let / conststringnumberbooleannull & undefinedtypeof
PROMPT #1
I am a beginner learning JavaScript from scratch. My goal is to learn JS so I can move to React and then Python backend for a job. I don't want to waste time on things I won't use. Please teach me "Variables & Data Types" in JavaScript. Cover these sub-topics one by one, each in a separate message. Wait for me to say "next" before moving to the next sub-topic: 1. var / let / const — what they are, difference between them, which one to use and why 2. Data types — string, number, boolean, null, undefined — with simple real-life examples 3. typeof operator — how to check what type a variable is Rules for teaching: - Assume I am a complete beginner - Use very simple real-life analogies and examples - Show small code examples for every concept - After each sub-topic, give me 2-3 small practice exercises - Tell me what to avoid or what beginners commonly get wrong - Do NOT teach advanced concepts like hoisting, temporal dead zone etc. I don't need them right now - Keep each explanation short, friendly and to the point - At the end of each sub-topic ask me if I understood or have questions Start with sub-topic 1 now.
Operators must
arithmetic + - * / %comparison == === !== >logical && || !ternary ? :
PROMPT #2
I am a beginner learning JavaScript. My goal is to learn JS to move to React and then get a job. Please teach me "Operators in JavaScript". Cover these sub-topics one by one, each in a separate message. Wait for me to say "next" before moving to the next sub-topic: 1. Arithmetic operators — + - * / % (with real examples like calculating price, age etc.) 2. Comparison operators — == === !== > < >= <= (very important: explain == vs === clearly with examples) 3. Logical operators — && || ! (with real if-condition examples) 4. Ternary operator — condition ? valueIfTrue : valueIfFalse (this is used a LOT in React, explain it well) Rules for teaching: - Assume I am a complete beginner - Use very simple relatable examples (shopping, age checks, scores etc.) - Show code for every single concept - After each sub-topic, give me 2-3 small practice exercises - Highlight common mistakes beginners make - Do NOT go into bitwise operators, comma operators or any advanced stuff - Keep tone friendly and encouraging - At the end of each sub-topic ask me if I understood or have questions Start with sub-topic 1 now.
Conditionals & loops must
if / else if / elseswitchfor loopwhilebreak & continue
PROMPT #3
I am a beginner learning JavaScript. My goal is to learn JS and then move to React for a frontend job. Please teach me "Conditionals and Loops in JavaScript". Cover these sub-topics one by one, each in a separate message. Wait for me to say "next" before moving to the next sub-topic: 1. if / else if / else — decision making in code with real life examples 2. switch statement — when to use switch instead of if/else, with examples 3. for loop — counting, repeating tasks, looping over a list of items 4. while loop — when to use while instead of for, with simple examples 5. break & continue — how to stop or skip inside a loop Rules for teaching: - Assume I am a complete beginner - Use very simple relatable examples (menu choices, counting items, scores etc.) - Write and explain small code snippets for every concept - After each sub-topic, give me 2-3 small practice exercises - Tell me which one I'll use most often in real projects - Do NOT teach for...in, for...of, do...while or label statements right now - Keep tone friendly, simple and encouraging - At the end of each sub-topic ask me if I understood or have questions Start with sub-topic 1 now.