Skip to content

Instantly share code, notes, and snippets.

@mizucoffee
Last active February 1, 2017 15:28
Show Gist options
  • Save mizucoffee/a3bda2e45b76f1c846fa0c9312fbd3ab to your computer and use it in GitHub Desktop.
Save mizucoffee/a3bda2e45b76f1c846fa0c9312fbd3ab to your computer and use it in GitHub Desktop.
process.stdin.resume();
process.stdin.setEncoding('utf8');
// Here your code !
const NmlModel = (()=>{
var text;
var type;
var properties;
return class {
}
})()
var n = new NmlModel();
n.text = "今は昔"
n.type = "Standard"
n.properties = "null"
example(n);
function example(nml){
console.log("テキスト:"+nml.text);
console.log("タイプ:"+nml.type);
console.log("プロパティ:"+nml.properties);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment