JS 物件

宣告物件

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 Back to Front End Homepage
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →