Day 12 of 100 Days Of Code

Day 12: August 05, Sunday

Today ‘s Progress: I worked on the challenges in Object Oriented Programming section.

Thoughts: These FCC_Challenges were a lot different from the Challenges in the algorithm section that were so tough, this section has plenty of good examples and instructions but I did use a linter for the yaml on my blog site where I post my status. resources: codebeautify

//Use Prototype Properties to Reduce Duplicate Code
//Add a numLegs property to the prototype of Dog
function Dog(name) {
  this.name = name;
}
Dog.prototype.numLegs = 4;
// Add your code above this line
let beagle = new Dog("Snoopy");
console.log(beagle); // prints Snoopy
console.log(Dog); // prints Snoopy
console.log("--------------------------------------------");

Link(s) to work

  1. Continued Introduction to the Object Oriented Programming Challenges

Introduction to the Object Oriented Programming

  • PassedUse Dot Notation to Access the Properties of an Object
  • PassedCreate a Method on an Object
  • PassedMake Code More Reusable with the this Keyword
  • PassedDefine a Constructor Function
  • PassedUse a Constructor to Create Objects
  • PassedExtend Constructors to Receive Arguments
  • PassedVerify an Object’s Constructor with instanceof
  • PassedUnderstand Own Properties
  • PassedUse Prototype Properties to Reduce Duplicate Code

All code is in GitHub and repl.it here: Repl.it or GitHub

Written on August 5, 2018