You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/04-object-basics/08-symbol/article.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ alert(id1 == id2); // false
44
44
45
45
If you are familiar with Ruby or another language that also has some sort of "symbols" -- please don't be misguided. JavaScript symbols are different.
46
46
47
-
So, to summarize, symbols are "special unique values" with optional description. Let's see where we can use them.
47
+
So, to summarize, symbols are "primitive unique values" with optional description. Let's see where we can use them.
48
48
49
49
````warn header="Symbols don't auto-convert to a string"
50
50
Most values in JavaScript support implicit conversion to a string. For instance, we can `alert` almost any value, and it will work. Symbols are special. They don't auto-convert.
0 commit comments