Methods of primitives by joaquinelio · Pull Request #199 · javascript-tutorial/es.javascript.info · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ importance: 5

---

# Can I add a string property?
# ¿Puedo agregar una propiedad a un string?


Consider the following code:
Considera el siguiente código:

```js
let str = "Hello";
Expand All @@ -15,4 +15,4 @@ str.test = 5;
alert(str.test);
```

How do you think, will it work? What will be shown?
Qué piensas, ¿funcionará? ¿Que mostrará?
100 changes: 50 additions & 50 deletions 1-js/05-data-types/01-primitives-methods/article.md