Skip to content

Commit d47800c

Browse files
committed
part 1b
1 parent d5ca349 commit d47800c

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

src/content/1/en/part1b.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ The properties of an object are referenced by using the "dot" notation, or by us
157157

158158
```js
159159
console.log(object1.name) // Arto Hellas is printed
160-
const fieldName = 'age'
160+
const fieldName = 'age'
161161
console.log(object1[fieldName]) // 35 is printed
162162
```
163163

@@ -172,7 +172,7 @@ The latter of the additions has to be done by using brackets because when using
172172

173173
Naturally, objects in JavaScript can also have methods. However, during this course, we do not need to define any objects with methods of their own. This is why they are only discussed briefly during the course.
174174

175-
Objects can also be defined using so-called constructor functions, which results in a mechanism reminiscent of many other programming languages, e.g. Java's classes. Despite this similarity, JavaScript does not have classes in the same sense as object-oriented programming languages. There has been, however, an addition of the <i>class syntax</i> starting from version ES6, which in some cases helps structure object-oriented classes.
175+
Objects can also be defined using so-called constructor functions, which results in a mechanism reminiscent of many other programming languages, e.g. Java's classes. Despite this similarity, JavaScript does not have classes in the same sense as object-oriented programming languages. There has been, however, the addition of the <i>class syntax</i> starting from version ES6, which in some cases helps structure object-oriented classes.
176176

177177
### Functions
178178

@@ -265,7 +265,7 @@ If and <i>when</i> you encounter an error message
265265
266266
keep in mind the things told [here](/en/part1/introduction_to_react#do-not-render-objects).
267267

268-
<h4>1.3: course information step3</h4>
268+
<h4>1.3: Course Information step 3</h4>
269269

270270
Let's move forward to using objects in our application. Modify the variable definitions of the <i>App</i> component as follows and also refactor the application so that it still works:
271271

@@ -293,9 +293,9 @@ const App = () => {
293293
}
294294
```
295295

296-
<h4>1.4: course information step4</h4>
296+
<h4>1.4: Course Information step 4</h4>
297297

298-
And then place the objects into an array. Modify the variable definitions of <i>App</i> into the following form and modify the other parts of the application accordingly:
298+
Place the objects into an array. Modify the variable definitions of <i>App</i> into the following form and modify the other parts of the application accordingly:
299299

300300
```js
301301
const App = () => {
@@ -341,7 +341,7 @@ const App = () => {
341341
}
342342
```
343343

344-
<h4>1.5: course information step5</h4>
344+
<h4>1.5: Course Information step 5</h4>
345345

346346
Let's take the changes one step further. Change the course and its parts into a single JavaScript object. Fix everything that breaks.
347347

0 commit comments

Comments
 (0)