自制简单promise输出题

function getDesc(param) {
      return new Promise((resolve, reject) => {
        console.log('1')
        setTimeout(() => {
          resolve(`大家好,我是${param}`)
        }, 3000);
      }).then(res => {
        console.log('3', res)
        return res
      })
    }
    async function getName(params) {
      let result = await getDesc(params)
      console.log('4', result)
      return result
    }
    getName('周杰伦').then(res => {
      console.log('5', res)
    })
    console.log('6')

请问上面输出的是?

你可能感兴趣的:(笔记,娱乐,javascript,前端,vue.js)