Home »
MCQs »
Lodash MCQs
What will be the output of the following code (4) (Lodash)?
15. What will be the output of the following code?
array = [1, 2, 3, 4, 5, 6, 7, 8, 9];
let slice1 = _.slice(nums, 3, 7);
console.log(slice1);
- [3, 4, 5, 6]
- [3, 4, 5, 6,7]
- [4, 5, 6,7]
- [3,4, 5, 6,7]
Answer: C) [4, 5, 6,7]
Explanation:
The following will be the output: [4, 5, 6,7].