Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Step2.1
  • Loading branch information
EliaYazdi committed Aug 2, 2019
commit b95e9fa6628b377128fbdb91332069526d7776c1
79 changes: 37 additions & 42 deletions Week1/homework/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,51 +31,46 @@ bookList.forEach(book => {
*/

const bookInfo = {
'Elia1': {
properties: {
name: 'Elia 1',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
'Elia1': {
properties: {
name: 'Elia 1',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
'Elia2': {
properties: {
name: 'Elia 2',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
},
'Elia3': {
properties: {
name: 'Elia 3',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
},
'Elia2': {
properties: {
name: 'Elia 2',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
'Elia4': {
properties: {
name: 'Elia 4',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
},
'Elia3': {
properties: {
name: 'Elia 3',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
'Elia5': {
properties: {
name: 'Elia 5',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
},
'Elia4': {
properties: {
name: 'Elia 4',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
},
'Elia5': {
properties: {
name: 'Elia 5',
Author: 'Elia the Famouse',
Language: 'English',
img: 'eli.jpg',
},
}
}


bookInfo.forEach(info => {
let div = document.createElement('div');
document.getElementById('inf').appendChild(div);
div.innerHTML += info.name;
});
document.getElementById('inf').innerHTML = `<li>${bookInfo.key}</li>`;
10 changes: 5 additions & 5 deletions Week3/homework/step2-1.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
'use strict';

function foo(func) {
// What to do here?
// Replace this comment and the next line with your code
console.log(func);
function foo() {

console.log('Week3');
}

function bar() {
Expand All @@ -12,5 +11,6 @@ function bar() {

foo(bar);


// Do not change or remove anything below this line
module.exports = foo;
module.exports = foo;