Returning Strings

Lee·2022년 6월 11일

Algorithm

목록 보기
12/92
post-thumbnail

❓ Returning Strings

Q. Make a function that will return a greeting statement that uses an input; your program should return, "Hello, how are you doing today?".

[Make sure you type the exact thing I wrote or the program may not execute properly]

✔ Solution

function greet(name){
  //your code here
  return `Hello, ${name} how are you doing today?`
}
profile
Lee

0개의 댓글