I want the greet() function on index [2] element to appear inside the Array after 3 sec

前端 未结 0 1480
温柔的废话
温柔的废话 2021-01-19 17:53
function greet(x) { let greet = x setTimeout(function () { console.log(greet) }, 3000) return ${greet} }

// let result = greet(\'hey\')

let arr = [1, \'check\', gr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题