MuleSoft Certified Developer – Level 1 — Question 52
What does the minus operator do in DataWeave?
Answer options
- A. Decrements the value by one.
- B. Removes items from a list.
- C. Increments the value by one.
- D. Removes characters from a string.
Correct answer: B
Explanation
The minus operator in DataWeave is used to remove items from a list, making option B correct. Options A and C incorrectly describe the operator as affecting numeric values rather than lists, while option D misstates its function concerning strings.