Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript Developer I Topic 3 Question 87 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 87
Topic #: 3
[All Javascript Developer I Questions]

Which three options show valid methods for creating a fat arrow function?

Choose 3 answers

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Levi
1 months ago
Wait, are we supposed to be creating fat arrow functions or just regular arrow functions? I'm getting a little confused over here...
upvoted 0 times
Gerald
12 days ago
C) ( ) => ( console.log(' executed ') ;)
upvoted 0 times
...
Chara
19 days ago
A) x => ( console.log(' executed ') ; )
upvoted 0 times
...
...
Jani
1 months ago
D is a no-go, my friend. The parameters need to be either a single variable or enclosed in parentheses, not just a list of variables.
upvoted 0 times
Ernest
7 days ago
C) ( ) => ( console.log(' executed ') ;)
upvoted 0 times
...
Sol
11 days ago
A) x => ( console.log(' executed ') ; )
upvoted 0 times
...
...
Dominga
1 months ago
Haha, option B with the empty array as the parameter? What is this, a function that doesn't take any input? Sounds like a joke to me.
upvoted 0 times
...
Lai
2 months ago
I'm not sure about option A. Does the single parameter really need the parentheses? I thought arrow functions with a single parameter can omit them.
upvoted 0 times
Felix
25 days ago
Correct options are C, D, and E. They show valid methods for creating a fat arrow function.
upvoted 0 times
...
Miriam
1 months ago
Option A is incorrect. Arrow functions with a single parameter can omit the parentheses.
upvoted 0 times
...
...
Nelida
2 months ago
I'm not sure about option D, I think it should be lowercase x, y, z instead of uppercase.
upvoted 0 times
...
Sabine
2 months ago
Option E looks good to me! The parentheses around the parameters are a must for arrow functions with multiple parameters.
upvoted 0 times
Gracia
1 months ago
User 2: Yeah, I agree. Option E is the way to go for creating a fat arrow function.
upvoted 0 times
...
Lenny
1 months ago
User 1: I think option E is correct too. The parentheses are necessary for multiple parameters.
upvoted 0 times
...
...
Ligia
2 months ago
I agree with Daniela, those options make sense for creating fat arrow functions.
upvoted 0 times
...
Daniela
2 months ago
I think options C, D, and E are valid.
upvoted 0 times
...

Save Cancel