Added practice file

pull/1899/head
Amir Walker 2 weeks ago
parent 363f602c3c
commit 51486ed337

@ -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!

@ -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

@ -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
- ✅ **Connect** fundamental programming concepts to practical applications

@ -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]
```
Loading…
Cancel
Save