<html>
<script>
function Lingvo() {
var Eng = [];
var Rus = [];
// this.count = 0;
this.Eng = Eng;
this.Rus = Rus;
this.AddEng = function (EngWord) {
Eng.push(EngWord);
// this.count += 1;
}
this.AddRus = function (RusWord) {
Rus.push(RusWord);
}
this.count = function() {
return Eng.length;
};
}
var LWord = new Lingvo;
LWord.AddEng("father");
LWord.AddRus("папа");
LWord.AddEng("he");
LWord.AddRus("он");
LWord.AddEng("bread");
LWord.AddRus("хлеб");
alert (LWord.count);
</script>
</html>