function _join(array) {
    // 方法1---------
    // return array.join('');
    
    // 方法2------------笨方法,数组大时很耗性能
    // let x = '';
    // array.forEach(ele => {
    //     x = x + ele;
    // })
    // return x;
    
    // 方法 3.1--------------replaceAll() 方法返回 一个新字符串
    // let x = array.toString();
    // x = x.replaceAll(',', ''); // 如果不是链式操作,需要重新更新x的值
    // return x;
    // 方法 3.2
    // let x = array.toString().replaceAll(',', '');
    // return x;
    
    // 方法4----------reduce()方法,用法查看MDN
    let x = '';
    return array.reduce((pre, cur) => pre + cur, x);
}
_join([1,'2',3])