This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>App</title> | |
</head> | |
<body> | |
<div id="app"><div id="scroll" class="scroll-wrapper"><div class="scroll-content"></div></div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function People (name) { | |
this.name = name; | |
} | |
People.prototype.getName = function() { | |
return this.name; | |
} | |
function Student(name) { | |
People.call(this, name); | |
this.learn = function() { |