以下哪段代码不能正确创建函数show()?()A、function show(text){ alert(text); }B、var showFun = function show(text){ alert(text); }C、var showFun = function(text){ alert(text); }D、var showFun =new function("text" , "alert(text)"};

题目

以下哪段代码不能正确创建函数show()?()

  • A、function show(text){ alert(text); }
  • B、var showFun = function show(text){ alert(text); }
  • C、var showFun = function(text){ alert(text); }
  • D、var showFun =new function("text" , "alert(text)"};

相似考题