// 工厂模式
// function createPerson(name,age,address){
// let obj = new Object();
// obj.name = name
// obj.age = age
// obj.address = address
// obj.sayName = function(){
// return this.name
// }
// return obj
// }
// let person = new createPerson('zhou',12,'苏州')
// console.log('23',person.name,person.age,person.address)
// console.log('sayName',person.sayName())
let ages = [1,10,21,2]
// console.log('ages',ages)
function sorts(ages){
console.log('ages',ages)
let ag = ages.sort()
console.log('=======>>>',ag)
}
sorts(ages)
console