Skip to content

Commit fc6b644

Browse files
committed
feat: enhance learning materials with escape sequences and additional context
- Add escape sequences to the FINISHED.mdx file, explaining their role in string manipulation. - Update README for the template literals exercise to include a note about future content on functions.
1 parent be349b9 commit fc6b644

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

exercises/01.expressions-and-output/05.solution.template-literals/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ as you write more code.
1111
// You can even call functions inside template literals
1212
console.log(`Random number: ${Math.random()}`)
1313
```
14+
15+
We'll get to functions later.

exercises/01.expressions-and-output/FINISHED.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ You learned:
77
- 🖨️ **console.log()** prints values to the terminal so you can see results
88
- 🏃 **Running code** with `node index.ts` executes your TypeScript file
99
- 📝 **String expressions** create text values using quotes
10+
- 🔄 **Escape sequences** include special characters in strings like `\n` for newlines
1011
-**String concatenation** joins strings together with `+`
1112
- 🔢 **Number expressions** and arithmetic operators (`+`, `-`, `*`, `/`)
1213
- 💬 **Template literals** use backticks and `${expression}` for interpolation

0 commit comments

Comments
 (0)