I am looking to generate a series of sentences using an array in conjunction with a standardized sentence structure. While I can easily create an array to showcase a range of numbers, I am unsure how to incorporate these numbers into sentences.
For instance, my goal is to craft 25 unique sentences, each featuring a different number extracted from the array.
The template for the sentence would be:
This is number: (a number fetched from the array), okay?
The resulting sentences should look similar to this:
This is number **1**, okay?
This is number **2**, okay?
This is number **3**, okay?
...
This is number **25**, okay?
Below is the current code for the array:
function range(start, end) {
return Array(end - start + 1).fill().map((_, idx) => start + idx)
}
var result = range(1, 25);
console.log(result);