You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/1/en/part1b.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ The properties of an object are referenced by using the "dot" notation, or by us
157
157
158
158
```js
159
159
console.log(object1.name) // Arto Hellas is printed
160
-
constfieldName='age'
160
+
constfieldName='age'
161
161
console.log(object1[fieldName]) // 35 is printed
162
162
```
163
163
@@ -172,7 +172,7 @@ The latter of the additions has to be done by using brackets because when using
172
172
173
173
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.
174
174
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.
176
176
177
177
### Functions
178
178
@@ -265,7 +265,7 @@ If and <i>when</i> you encounter an error message
265
265
266
266
keep in mind the things told [here](/en/part1/introduction_to_react#do-not-render-objects).
267
267
268
-
<h4>1.3: course information step3</h4>
268
+
<h4>1.3: Course Information step 3</h4>
269
269
270
270
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:
271
271
@@ -293,9 +293,9 @@ const App = () => {
293
293
}
294
294
```
295
295
296
-
<h4>1.4: course information step4</h4>
296
+
<h4>1.4: Course Information step 4</h4>
297
297
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:
299
299
300
300
```js
301
301
constApp= () => {
@@ -341,7 +341,7 @@ const App = () => {
341
341
}
342
342
```
343
343
344
-
<h4>1.5: course information step5</h4>
344
+
<h4>1.5: Course Information step 5</h4>
345
345
346
346
Let's take the changes one step further. Change the course and its parts into a single JavaScript object. Fix everything that breaks.
0 commit comments