MuleSoft Certified Developer – Level 1 — Question 71
Which keyword do you use to create a new function in DataWeave?
Answer options
- A. function
- B. fun
- C. func
- D. None of these
Correct answer: B
Explanation
The correct keyword to create a new function in DataWeave is 'fun', making option B the right answer. Options A and C are incorrect as 'function' and 'func' are not valid keywords in DataWeave for defining functions. Option D is also incorrect since 'fun' is indeed a valid keyword.