Home »
MCQs »
Lodash MCQs
What will be the output of the following code (2) (Lodash)?
9. What will be the output of the following code?
const value = _.range(0, 15, 5);
console.log(value);
- [ 0, 5, 10 ]
- [ 0, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 ]
- [ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
- [ 0, 5, 10,15 ]
Answer: A) [ 0, 5, 10 ]
Explanation:
Following will be the output: [ 0, 5, 10 ], 15 will not be included in the range.