Which of the following code snippets (if any) correctly defines a function greet that takes in the user's name and greets them? Select all that apply.多项选择题

A

function greet {   echo "Hello, $name!"; }

B

greet = {     echo "Hello, $name!"; }

C

None of the other answers is correct

D

greet() {     echo "Hello, $name!"; }

E

function greet() {     echo "Hello, $name!"; }

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!