Skip to content

Commit 21ffff6

Browse files
committed
rename-bio-to-profile
1 parent 0ed46ef commit 21ffff6

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

docs/1-trial-session/12-object/_samples/change-bio-property/script.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/1-trial-session/12-object/_samples/change-bio-property/index.html renamed to docs/1-trial-session/12-object/_samples/change-profile-property/index.html

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const user = {
2+
name: "山田花子",
3+
profile: "プログラミングを勉強しています。",
4+
};
5+
6+
document.write(user.profile); // プログラミングを勉強しています。
7+
user.profile = "JavaScriptでWebアプリを作っています。";
8+
document.write(user.profile); // JavaScriptでWebアプリを作っています。
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
const user = {
22
name: "山田花子",
3-
bio: "プログラミングを勉強しています。",
3+
profile: "プログラミングを勉強しています。",
44
};

docs/1-trial-session/12-object/index.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ JavaScriptのオブジェクトは、ほかの言語でいう辞書や連想配
5151
次のような情報を持つユーザーを表すオブジェクト`user`を作成してください。
5252

5353
- `name`: `"山田花子"`
54-
- `bio`: `"プログラミングを勉強しています。"`
54+
- `profile`: `"プログラミングを勉強しています。"`
5555

5656
<Answer>
5757

5858
```javascript
5959
const user = {
6060
name: "山田花子",
61-
bio: "プログラミングを勉強しています。",
61+
profile: "プログラミングを勉強しています。",
6262
};
6363
```
6464

@@ -92,19 +92,19 @@ document.write(student.email); // yamada.taro@example.jp
9292
```javascript
9393
const user = {
9494
name: "山田花子",
95-
bio: "プログラミングを勉強しています。",
95+
profile: "プログラミングを勉強しています。",
9696
};
9797
```
9898

9999
<Answer>
100100

101101
```javascript
102-
document.write(user.bio); // プログラミングを勉強しています。
103-
user.bio = "JavaScriptでWebアプリを作っています。";
104-
document.write(user.bio); // JavaScriptでWebアプリを作っています。
102+
document.write(user.profile); // プログラミングを勉強しています。
103+
user.profile = "JavaScriptでWebアプリを作っています。";
104+
document.write(user.profile); // JavaScriptでWebアプリを作っています。
105105
```
106106

107-
<ViewSource url={import.meta.url} path="_samples/change-bio-property" />
107+
<ViewSource url={import.meta.url} path="_samples/change-profile-property" />
108108

109109
</Answer>
110110

@@ -141,7 +141,7 @@ document.write(student.scores.math); // 100
141141
```javascript
142142
const user = {
143143
name: "山田花子",
144-
bio: "JavaScriptでWebアプリを作っています。",
144+
profile: "JavaScriptでWebアプリを作っています。",
145145
settings: {
146146
isNotificationsEnabled: true,
147147
language: "日本語",

0 commit comments

Comments
 (0)