@savithabj This hello object is how you say “hello” in a number of different languages from a TV show called “Star Trek”.
“nuqneH” means “hello” for one of the species (Klingon) in this TV show.
Just think of it as english, spanish and french.
var hello = {
english: “Hello”,
spanish: “Hola”,
french: “Bonjour"
}
Quiz 6 - question about "Have at least one child class over-ride a property"
But how exactly does a child class override a property of its parent class?
can the same property ("property1" for example) be in both parent and child constructors?
Or do we say --
function Child (x) {
this.x = x;
}
function Parent(y) {
this.z = "z1";
this.y = y;
}
Child.prototype = new Parent("y");
Child.prototype.z = "z2";
Child.prototype = new Parent("y");
Child.prototype.z = "z2";
would be over-writing the value of z in the parent. over-riding means putting the value earlier in the prototype chain.
so:
function Child() {
this.z = "z2";
}
is over-riding
Question 2 lab3 - i think this is not Fibonacci
during hour 1 rate of consumption = 1
during hour 2 rate of consumption = 2 total people eaten = 2 + 1 = 3
during hour 3 rate of consumption = 3 total people eaten = 3 + 2 + 1 = 6
.......
at the end of hour n when there are no more people to eat
rate of consumption = n
total people eaten = n + (n-1) + (n-2) +... +3+2+ 1
@StephanieBeaton
Absolutly!
So the easiest way to use/install it is to:
Go to this link: http://getbootstrap.com/getting-started/
Copy all 3 links of the “Bootstrap CDN” code and paste in the <head></head> section of your HTML file.
(CDN = “Content Delivery Network”, it tells your page to grab the bootstrap information from another server. As opposed to needing store your own copy of bootstrap.)
You should now be able to access bootstrap CSS classes.
Scroll down on the http://getbootstrap.com/getting-started/ page, you can see (and copy) the starter template. Or, go to this page: http://getbootstrap.com/css/ to see a wide variety of avalable styles.
I would be happy to walk you through it in class too if you want.
Note: you need access to the internet for this to work, as your page needs to be able to access the CDN.