node-js-from-stratch 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/package.json +12 -0
- package/parse_exercise.js +695 -0
- package/parsing_data_algorithm.js +0 -0
- package/parsing_node_course.js +3025 -0
- package/stringTemplate.js +19 -0
- package/stringTemplate2.js +23 -0
- package/tagFunction.js +7 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// let customers = [
|
|
2
|
+
// { name: "Marley", acc_num: 123456789, expiry_date: "12/24/2024" },
|
|
3
|
+
// { name: "Emily", acc_num: 987654321, expiry_date: "11/30/2024" },
|
|
4
|
+
// { name: "Ramzy", acc_num: 555555555, expiry_date: "10/31/2024" },
|
|
5
|
+
// { name: "Magdy", acc_num: 111111111, expiry_date: "09/30/2024" },
|
|
6
|
+
// ];
|
|
7
|
+
// function generateMessage(customer) {
|
|
8
|
+
// return `Dear ${customer.name}, your account number ${customer.acc_num} will expire on ${customer.expiry_date}.
|
|
9
|
+
// Please renew your account before the expiry date.
|
|
10
|
+
// We hope this message finds you well.
|
|
11
|
+
// Thank you for being a valued customer.`;
|
|
12
|
+
// }
|
|
13
|
+
// for (let customer of customers) {
|
|
14
|
+
// let message = generateMessage(customer);
|
|
15
|
+
// console.log("------------------------------------");
|
|
16
|
+
// console.log(message);
|
|
17
|
+
// }
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// let customers = [
|
|
2
|
+
// { name: "Marley", acc_num: 123456789, expiry_date: "12/24/2024" },
|
|
3
|
+
// { name: "Emily", acc_num: 987654321, expiry_date: "11/30/2024" },
|
|
4
|
+
// { name: "Ramzy", acc_num: 555555555, expiry_date: "10/31/2024" },
|
|
5
|
+
// { name: "Magdy", acc_num: 111111111, expiry_date: "09/30/2024" },
|
|
6
|
+
// ];
|
|
7
|
+
|
|
8
|
+
// function generateMessage(customer) {
|
|
9
|
+
// return `Dear ${customer.name}, your account number ${customer.acc_num} will expire on ${customer.expiry_date}.
|
|
10
|
+
// Please renew your account before the expiry date.
|
|
11
|
+
// We hope this message finds you well.
|
|
12
|
+
// Thank you for being a valued customer.`;
|
|
13
|
+
// }
|
|
14
|
+
// for (let i = 0; i < customers.length; i++) {
|
|
15
|
+
// let customer = customers[i];
|
|
16
|
+
// let message = generateMessage(customer);
|
|
17
|
+
// console.log("------------------------------------");
|
|
18
|
+
// console.log(message);
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
package/tagFunction.js
ADDED