From 51486ed3379ed56b3f80216538dd5da36a30b62c Mon Sep 17 00:00:00 2001 From: Amir Walker Date: Thu, 27 Aug 2026 13:43:14 -0700 Subject: [PATCH] Added practice file --- .../README.md | 2 +- 2-js-basics/1-data-types/README.md | 7 ++-- 2-js-basics/1-data-types/assignment.md | 3 +- 2-js-basics/1-data-types/assignment2.md | 39 +++++++++++++++++++ .../2-functions-methods/functions-practice.js | 0 5 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 2-js-basics/1-data-types/assignment2.md create mode 100644 2-js-basics/2-functions-methods/functions-practice.js diff --git a/1-getting-started-lessons/1-intro-to-programming-languages/README.md b/1-getting-started-lessons/1-intro-to-programming-languages/README.md index 784c0dbf2..79d32a10b 100644 --- a/1-getting-started-lessons/1-intro-to-programming-languages/README.md +++ b/1-getting-started-lessons/1-intro-to-programming-languages/README.md @@ -2,7 +2,7 @@ # Introduction to Programming Languages and Modern Developer Tools Hey there, future developer! 👋 Can I tell you something that still gives me chills every single day? You're about to discover that programming isn't just about computers – it's about having actual superpowers to bring your wildest ideas to life! -test + You know that moment when you're using your favorite app and everything just clicks perfectly? When you tap a button and something absolutely magical happens that makes you go "wow, how did they DO that?" Well, someone just like you – probably sitting in their favorite coffee shop at 2 AM with their third espresso – wrote the code that created that magic. And here's what's going to blow your mind: by the end of this lesson, you'll not only understand how they did it, but you'll be itching to try it yourself! Look, I totally get it if programming feels intimidating right now. When I first started, I honestly thought you needed to be some kind of math genius or have been coding since you were five years old. But here's what completely changed my perspective: programming is exactly like learning to have conversations in a new language. You start with "hello" and "thank you," then work up to ordering coffee, and before you know it, you're having deep philosophical discussions! Except in this case, you're having conversations with computers, and honestly? They're the most patient conversation partners you'll ever have – they never judge your mistakes and they're always excited to try again! diff --git a/2-js-basics/1-data-types/README.md b/2-js-basics/1-data-types/README.md index 68dcdc37f..1ac10fc10 100644 --- a/2-js-basics/1-data-types/README.md +++ b/2-js-basics/1-data-types/README.md @@ -134,7 +134,8 @@ Creating and **declaring** a variable has the following syntax **[keyword] [name - The previous value is replaced – variables store only one value at a time - This mutability is the key characteristic of variables declared with `let` - ✅ Try it! You can write JavaScript right in your browser. Open a browser window and navigate to Developer Tools. In the console, you will find a prompt; type `let myVariable = 123`, press return, then type `myVariable`. What happens? Note, you'll learn more about these concepts in subsequent lessons. + ✅ Try it! You can write JavaScript right in your browser. Open a browser window and navigate to Developer Tools. In the console, you will find a prompt; type ` + `, press return, then type `myVariable`. What happens? Note, you'll learn more about these concepts in subsequent lessons. ### 🧠 **Variables Mastery Check: Getting Comfortable** @@ -152,7 +153,7 @@ stateDiagram-v2 Reassigned --> [*]: Updated value note right of Declared - Variable exists but + Variable exists b.ut has no value (undefined) end note @@ -411,7 +412,7 @@ You can achieve your formatting goals with either method, but template literals stateDiagram-v2 [*] --> PlainText: "Hello" [*] --> Variable: name = "Alice" - PlainText --> Concatenated: + " " + name + PlainText --> Concatenated: + " " + name Variable --> Concatenated PlainText --> Template: `Hello ${name}` Variable --> Template diff --git a/2-js-basics/1-data-types/assignment.md b/2-js-basics/1-data-types/assignment.md index f5f00cc97..e75935d2c 100644 --- a/2-js-basics/1-data-types/assignment.md +++ b/2-js-basics/1-data-types/assignment.md @@ -84,4 +84,5 @@ By completing this assignment, you will: - ✅ **Analyze** when to choose specific data types for different purposes - ✅ **Create** working code examples that demonstrate data type usage - ✅ **Explain** technical concepts in beginner-friendly language -- ✅ **Connect** fundamental programming concepts to practical applications \ No newline at end of file +- ✅ **Connect** fundamental programming concepts to practical applications + diff --git a/2-js-basics/1-data-types/assignment2.md b/2-js-basics/1-data-types/assignment2.md new file mode 100644 index 000000000..553e4336e --- /dev/null +++ b/2-js-basics/1-data-types/assignment2.md @@ -0,0 +1,39 @@ + ### Example Format for Each Data Type + +For each data type, structure your response like this: + +```markdown +## [Data Type Name] + +**Purpose in Shopping Cart:** [Explain what this data type does] + +**Why This Type:** [Explain why this is the best choice] + +**Code Example:** +```javascript +// Your realistic code example here +``` + +**Real-world Usage:** [Describe how this would work in practice] + +**Interactions:** [Explain how this data type works with others] +``` + + + +```markdown +## String + +**Purpose in Shopping Cart:** Handles the + +**Why This Type:** [Explain why this is the best choice] + +**Code Example:** +```javascript +// Your realistic code example here +``` + +**Real-world Usage:** [Describe how this would work in practice] + +**Interactions:** [Explain how this data type works with others] +``` \ No newline at end of file diff --git a/2-js-basics/2-functions-methods/functions-practice.js b/2-js-basics/2-functions-methods/functions-practice.js new file mode 100644 index 000000000..e69de29bb