-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrings-with-special-characters.js
69 lines (51 loc) · 1.52 KB
/
strings-with-special-characters.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
Objective:
You will create formatted strings using special characters like \n, \t,
and Unicode sequences (\uXXXX) to display structured and expressive outputs.
Instructions:
Write JavaScript code to complete each task described below.
Use special characters (\n, \t) and Unicode escape sequences (\uXXXX) where appropriate.
Tasks:
Task 1: To-Do List
Create a formatted string to display a to-do list with tasks separated by newlines.
Use a tab to align the task descriptions and their statuses.
Example Output:
To-Do List:
- Task Status
- Clean Done
- Code In Progress
- Relax Pending
Task 2: Emoji Menu
Create a string to display a menu of food items with emojis representing them.
Use \n for newlines and \t for alignment.
Include Unicode characters for the emojis.
Example Output:
Menu:
Pizza 🍕
Burger 🍔
Sushi 🍣
Task 3: Greetings in Multiple Languages
Create a string that displays "Hello" in three different languages using Unicode characters for the text.
Example Output:
Greetings:
Hello (English)
Hola (Spanish)
こんにちは (Japanese)
Task 4: Favorite Symbols
Write a string that includes three of your favorite symbols using their Unicode code points.
Use \n to separate each symbol description.
Example Output:
My Favorite Symbols:
1. Heart: ♥
2. Star: ★
3. Checkmark: ✓
Task 5: Bookstore Receipt
Create a formatted receipt for a bookstore using \t for alignment and \n for newlines.
Include book titles, prices, and a total.
Example Output:
Receipt:
Book Price
1984 $9.99
Dune $14.99
Total $24.98
*/