en.javascript.info/1-js/4-object-basics/04-primitives-methods/1-string-new-property/task.md
Ilya Kantor 4c531b5ae7 ok
2016-07-31 00:28:27 +03:00

18 lines
198 B
Markdown

importance: 5
---
# Can I add a string property?
Consider the following code:
```js
let str = "Hello";
str.test = 5;
alert(str.test);
```
How do you think, will it work? What will be shown?