Highlight key points in articles
This commit is contained in:
@ -10,7 +10,7 @@ excerpt: When it comes to immutability, many developers have trouble wrapping th
|
||||
firstSeen: 2021-10-10T05:00:00-04:00
|
||||
---
|
||||
|
||||
String specifications among programming languages vary, however most languages treat them as reference types. But strings in JavaScript are different. They are immutable primitives. This means that the characters within them may not be changed and that any operations on strings actually create new strings.
|
||||
String specifications among programming languages vary, however most languages treat them as reference types. But strings in JavaScript are different. They are **immutable primitives**. This means that the characters within them may not be changed and that any operations on strings actually create new strings.
|
||||
|
||||
```js
|
||||
const x = 'type';
|
||||
|
||||
Reference in New Issue
Block a user