git.schokokeks.org
Repositories
Help
Report an Issue
fs-workbench.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
ffd4c85
Branches
Tags
master
fs-workbench.git
source
model
word.js
added class 'word'
fenris
commited
ffd4c85
at 2016-05-28 19:43:20
word.js
Blame
History
Raw
/** * @author fenris */ class Word { constructor(language, representation, pronunciation) { this.language = language; this.representation = representation; this.pronunciation = pronunciation } toString() { let parts = []; if (this.language != null) parts.push("[" + this.language + "]"); if (this.representation != null) parts.push("\"" + this.representation + "\""); if (this.pronunciation != null) parts.push("(" + this.pronunciation + ")"); return parts.join(" "); } }