lab13: impl
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
name = "Monty";
|
||||
/*global console*/
|
||||
/*jslint this*/
|
||||
var name = "Monty";
|
||||
var r = new Rabbit("Python");
|
||||
|
||||
function Rabbit(name) {
|
||||
this.name = name;
|
||||
this.name = name;
|
||||
}
|
||||
var r = Rabbit("Python");
|
||||
|
||||
console.log(r.name); // ERROR!!!
|
||||
console.log(name); // Prints "Python"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user