Skip to content

Commit dd9663b

Browse files
committed
update - Accessing Ojects
1 parent 16fa627 commit dd9663b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,6 @@ const person = {
13111311
age: 56
13121312
};
13131313

1314-
13151314
// Template Literals with multi-line and String interpolation
13161315
const greeting = `Hello, my name is ${person.name}!
13171316
I am ${person.age} years old.`;
@@ -1325,7 +1324,7 @@ function makeList(arr) {
13251324
//const resultDisplayArray = null;
13261325
const resultDisplayArray = [];
13271326
for (let i=0; i < arr.length; i++){
1328-
resulDisplayArray.push(`<li class="text-warnig"> ${arr[i]}</li>`)
1327+
resultDisplayArray.push(`<li class="text-warnig"> ${arr[i]}</li>`)
13291328
}
13301329
return resultDisplayArray
13311330
}
@@ -1336,4 +1335,5 @@ function makeList(arr) {
13361335
]
13371336
*/
13381337

1339-
const resulDisplayArray = makeList(resul.failure);
1338+
const resultDisplayArray = makeList(result.failure);
1339+
console.log(resultDisplayArray);

0 commit comments

Comments
 (0)