ok
This commit is contained in:
parent
9064e35f3f
commit
4c531b5ae7
371 changed files with 338 additions and 316 deletions
10
1-js/4-object-basics/01-object/2-hello-object/solution.md
Normal file
10
1-js/4-object-basics/01-object/2-hello-object/solution.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
```js
|
||||
let user = {};
|
||||
user.name = "John";
|
||||
user.surname = "Smith";
|
||||
user.name = "Pete";
|
||||
delete user.name;
|
||||
```
|
||||
|
14
1-js/4-object-basics/01-object/2-hello-object/task.md
Normal file
14
1-js/4-object-basics/01-object/2-hello-object/task.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Hello, object
|
||||
|
||||
Write the code, each line for an action:
|
||||
|
||||
1. Create an empty object `user`.
|
||||
2. Add the property `name` with the value `John`.
|
||||
3. Add the property `surname` with the value `Smith`.
|
||||
4. Change the value of the `name` to `Pete`.
|
||||
5. Remove the property `name` from the object.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue