'use strict';
var xiaoming = {
name: '小明',
birth: 1990,
school: 'No.1 Middle School',
height: 1.70,
weight: 65,
score: null
};
console.log(xiaoming.name);
console.log(xiaoming.weight);
var xiaohong = {
name: '小红',
'middle-school': 'No.1 Middle School'
};
console.log(xiaohong['middle-school']);
xiaohong.age = 19;
console.log(xiaohong.age);
delete xiaohong.age;
console.log(xiaohong.age);
console.log('name' in xiaohong);
console.log('grade' in xiaohong);
console.log('toString' in xiaohong);
console.log('hasOwnProperty()方法判断是否是对象自身拥有的')
console.log(xiaohong.hasOwnProperty('name'));
console.log(xiaohong.hasOwnProperty('toString'))
console