Skip to content

Commit 0df80b2

Browse files
committed
fixes
1 parent d26a64c commit 0df80b2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

01-recipients-read/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ messages[0][isRead] = true;
4040

4141
Now third-party code probably won't see our extra property.
4242

43-
Both solutions are possible, though the one with `WeakSet` is "cleaner" from the architectural point of view.
43+
Although symbols allow to lower the probability of problems, using `WeakSet` is better from the architectural point of view.

01-recipients-read/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Now, which data structure you could use to store information whether the message
2020

2121
P.S. When a message is removed from `messages`, it should disappear from your structure as well.
2222

23-
P.P.S. We shouldn't modify message objects directly. As they are managed by someone else's code, adding extra properties to them may have bad consequences.
23+
P.P.S. We shouldn't modify message objects, add our properties to them. As they are managed by someone else's code, that may lead to bad consequences.

02-recipients-when-read/task.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ let messages = [
1717
The question now is: which data structure you'd suggest to store the information: "when the message was read?".
1818

1919
In the previous task we only needed to store the "yes/no" fact. Now we need to store the date, and it should only remain in memory until the message is garbage collected.
20+
21+
P.S. Dates can be stored as objects of built-in `Date` class, that we'll cover later.

0 commit comments

Comments
 (0)