en.javascript.info/1-js/3-object-basics/4-primitives-methods/1-string-new-property/task.md
Ilya Kantor 057783d216 work
2016-07-21 17:05:55 +03:00

198 B

importance: 5


Can I add a string property?

Consider the following code:

let str = "Hello";

str.test = 5;

alert(str.test);

How do you think, will it work? What will be shown?