a:active,
a:hover {
outline: 0;
}
b,
strong {
font-weight: bold;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
select {
text-transform: none;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
optgroup {
font-weight: bold;
}
td,
th {
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
textarea {
overflow: auto;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
img {
border: 0;
}
function One() {
this.set = function () {
this.param = 365;
};
this.test = function () {
console.log('Я — мать его первенец');
};
}
function Two() {}
function Three() {}
function F() {}
One.prototype = {
show: function () {
console.log(this.param, this.hasOwnProperty('set'));
}
};
F.prototype = One.prototype;
Two.prototype = new One();
Two.prototype.set = function () {
this.param = 12;
};
Three.prototype = new F();
Three.prototype.set = function () {
this.param = 7;
};
var one = new One();
var two = new Two();
var three = new Three();
one.set();
two.set();
three.set();
one.show();
two.show();
three.show();
one.test();
two.test();
three.test();