Skip to content

JavaScript-I#1

Open
john-afolabi wants to merge 15 commits intomasterfrom
John-Afolabi
Open

JavaScript-I#1
john-afolabi wants to merge 15 commits intomasterfrom
John-Afolabi

Conversation

@john-afolabi
Copy link
Copy Markdown
Owner

@john-afolabi john-afolabi commented Oct 14, 2019

What does this PR do?

JavaScript-I

Description of tasks completed

  • Completed objects.js challenges
  • Completed arrays.js challenges
  • Completed function-conversion.js challenges
  • Completed function-conversion.js & objects.js stretch

@john-afolabi john-afolabi requested a review from nedssoft October 14, 2019 14:04
Copy link
Copy Markdown
Collaborator

@nedssoft nedssoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, good job!

Comment on lines +20 to +22
exampleArray = [1,2,3,4];
const triple = exampleArray.map((num) => num * 3);
console.log(triple); No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Comment on lines +108 to +121
console.log(parent.name);

// Log the child's age

console.log(parent.child.age);
// Log the name and age of the grandchild
// console.log(parent.child.grandchild.name + ", " + parent.child.grandchild.age);
console.log(`${parent.child.grandchild.name}, ${parent.child.grandchild.age}`);

// Have the parent speak

console.log(parent.speak());
// Have the child speak

console.log(parent.child.speak());
// Have the grandchild speak
console.log(parent.child.grandchild.speak()); No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@john-afolabi john-afolabi requested a review from nedssoft October 15, 2019 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants