From 69e48d3bb6d3e3e642e50e7a92625c51ffbcb2ee Mon Sep 17 00:00:00 2001 From: DesaiVishv Date: Fri, 4 Oct 2024 18:01:45 +0530 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b203a060..b5334722 100644 --- a/README.md +++ b/README.md @@ -3175,11 +3175,12 @@ console.log(getUser(user)) - B: `[1, [2, 3, 4]]` and `{ name: "Lydia", age: 21 }` - C: `[1, 2, 3, 4]` and `{ name: "Lydia", age: 21 }` - D: `Error` and `{ name: "Lydia", age: 21 }` +- E: `SyntaxError`
Answer

-#### Answer: A +#### Answer: E The `getList` function receives an array as its argument. Between the parentheses of the `getList` function, we destructure this array right away. You could see this as: