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);
  1. [ 0, 5, 10 ]
  2. [ 0, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 ]
  3. [ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
  4. [ 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.