You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax errors:
1. There is an extra closing parenthesis ')' at the end of the first line that should be removed.
2. In the second line, the square brackets '[]' should be replaced with parentheses '()' for creating a Set.
let newNums = "store Shallow copy of nums inside newNums variable")
1170
-
1159
+
let newNums = 'store Shallow copy of nums inside newNums variable';
1171
1160
```
1172
1161
1173
1162
**12.5:** You have given an array as below . Create a function which accept **multiple** elements as an argument and return last **4**element of the array
@@ -1322,6 +1311,7 @@ let set = new Set[(1, 2, 3, 2, 1, 3, 4, 12, 2)]();
1322
1311
output;
1323
1312
1324
1313
let arr = 'Do something here to convert....';
1314
+
console.log(arr);
1325
1315
```
1326
1316
1327
1317
**Question 8:** Guess the **Output** and Explain Why?
0 commit comments