Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Conner Mack](https://secure.gravatar.com/avatar/57210c1ef3c75ae670a7da28b7f801e4?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Conner Mack
7,309 Pointsneed help on this question
im not sure what would go in the blank
10 Answers
![Larissa Ragland](https://uploads.teamtreehouse.com/production/profile-photos/11521901/micro_Larissa.jpg)
Larissa Ragland
6,653 Pointsanswer:
const sayGreeting = (greeting, name) => {
return ${greeting}, ${name}.
;
}
![Kenneth Li](https://secure.gravatar.com/avatar/0518e7201c2ab49926cef56089dfd5bd?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Kenneth Li
3,298 Pointsconst remove = (string,letter) => { let regex = new RegExp(letter, 'g'); return string.replace(regex,''); }
![Omar Ocampo](https://uploads.teamtreehouse.com/production/profile-photos/10730539/micro_interview.jpg)
Omar Ocampo
3,166 PointsBad answer
![Shay Paustovsky](https://uploads.teamtreehouse.com/production/profile-photos/9612132/micro_Logo.jpg)
Shay Paustovsky
969 PointsHi There,
You are asked to complete the code to create a function expression that creates an anonymous function using the arrow syntax with 2 parameters : string & letter.
It looks like this
const something = ( ) => {
}
Now I will give you guides on how to create an anonymous function using arrow syntax.
- Parenthesis cannot be omitted if the function doesn't take any parameters
- If the function accepts one parameter you can ommit the parenthesis.
- If the function only has 1 line of code that it executes and immediatly returns a value, then " { } " and " return" can be omitted
- If the function has 2 or more parameters, parenthesis can't be omitted.
Good Luck
Shay
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsJust a guess, but if you're on the question about passing parameters note that when two or more parameters are being passed they should be enclosed in parentheses.
So for that question, the blank needs to have a set of parentheses containing both parameter names separated by a comma.
![Conner Mack](https://secure.gravatar.com/avatar/57210c1ef3c75ae670a7da28b7f801e4?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Conner Mack
7,309 PointsComplete the code below to create an arrow function with two parameters — string and letter — const remove = => { let regex = new RegExp(letter, 'g'); return string.replace(regex,''); }
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsI guessed you might be on that one. See the answer I already posted.
![Maycey Davis](https://secure.gravatar.com/avatar/b1b8365ec7253f43aee3840dbba289b3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Maycey Davis
2,792 Pointswhats the actual annswer
![Madason Snodgrass](https://secure.gravatar.com/avatar/30fdf0d37e03eb67e4f04e8ed2cdeeed?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Madason Snodgrass
2,727 Pointsi don't know i was wondering the same thing.
![Maycey Davis](https://secure.gravatar.com/avatar/b1b8365ec7253f43aee3840dbba289b3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Maycey Davis
2,792 Pointsasap
![Maycey Davis](https://secure.gravatar.com/avatar/b1b8365ec7253f43aee3840dbba289b3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Maycey Davis
2,792 Pointsi already got it wrong
![Amyah Aboytes](https://secure.gravatar.com/avatar/5c3510b64a0c28e5036b4338b7892228?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Amyah Aboytes
2,234 Pointswhat do we do on the number one??
![Alexandria Brownlee](https://uploads.teamtreehouse.com/production/profile-photos/11662903/micro_Screenshot_2021-11-17_10.30.32_PM.jpg)
Alexandria Brownlee
2,404 PointsThe answer is greeting,name used that to pass
![Kavitha Mahesawarappa Sujatha](https://secure.gravatar.com/avatar/3771311dddadfa4380de40f9c5a7ecf1?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Kavitha Mahesawarappa Sujatha
9,066 PointsComplete the code below to create an arrow function with two parameters — string and letter — const remove =(string, letter) => { let regex = new RegExp(letter, 'g'); return string.replace(regex,''); }
Steven Parker
230,688 PointsSteven Parker
230,688 PointsThe quiz has multiple questions, please quote the one you're having trouble with.
But none of the questions in this quiz require you to use backticks in the answer.