なぜこれ...
class Person
name: "initial name"
constructor: (@name) ->
class User extends Person
password: "initial password"
f = new User "Felds"
console.log f
console.log "my name is '#{f.name}' and my password is '#{f.password}'"
b = new User "Bob"
b.password = "bob's password"
console.log b
...実行すると、coffee -p test.coffee | node
これが出力されますか?
{ name: 'Felds' }
my name is 'Felds' and my password is 'initial password'
{ name: 'Bob', password: 'bob\'s password' }
password
プロパティが に表示されないのはなぜconsole.log f
ですか? どこに保存され、どのように取得されますか?