| 12345678910111213141516 |
- (function () {
- const obj = {
- name: '孙悟空',
- age: 20
- };
- console.log(obj);
- class Person5 {
- constructor(name, age, sex) {
- this.name = name;
- this.age = age;
- this.sex = sex;
- }
- }
- let a = new Person5('猪八戒', 22, '男');
- console.log(a);
- })();
|