Yesterday was graduation!!!! I can't believe I am actually an alum now. I moved out yesterday but it really hasn't hit me yet, it feels like I'm just leaving for the summer. The past 3 weeks were very hectic, because I had to finish my research and write my thesis (it's about genetics! Maybe I'll upload my abstract later because I'm pretty proud of it :D), study for and take my finals, drive to South Carolina for senior week, and graduate. I'll definitely miss all of my roommates and friends but it's exciting to start a whole new lifestyle.
Some notes from javascript that I thought I should take because the for-in loop used to confuse me...
var nyc = {
fullName: "New York City",
mayor: "Bill de Blasio",
population: 8000000,
boroughs: 5
};
for (var property in nyc) {
console.log(property);
}
^this prints out all of the properties in the nyc object (fullName, mayor, population, boroughs)
we can print out all of the values of the properties with
for(var property in nyc) {
console.log(nyc[property]);
}
Also, making a class :
function Animal(name,numLegs){
this.name= name;
this.numLegs= numLegs
}
And inheritance:
Some notes from javascript that I thought I should take because the for-in loop used to confuse me...
var nyc = {
fullName: "New York City",
mayor: "Bill de Blasio",
population: 8000000,
boroughs: 5
};
for (var property in nyc) {
console.log(property);
}
^this prints out all of the properties in the nyc object (fullName, mayor, population, boroughs)
we can print out all of the values of the properties with
for(var property in nyc) {
console.log(nyc[property]);
}
Also, making a class :
function Animal(name,numLegs){
this.name= name;
this.numLegs= numLegs
}
And inheritance: