# JS 物件 ## 宣告物件 ```javascript=! const i = { iAm: ['Jonny', ], iWantToBe: 'a front end developer', iLove: ['dog', ], iAspire: '' }; i.name = 'JJ'; i['skills'] = ['H', 'C', 'J']; console.log(i); ``` 物件導向的三大特性 封裝:方便閱讀 繼承:去除重覆 ###### tags: `frontend` `jsnote` [:arrow_right: Back to Front End Homepage :arrow_left:](/S-c0eqQmS16D8tcTx4ae1g)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up