I have problem, that Quokka not showed result for this line:
[...Array(max - min + 1).keys()].map(i => i + min);
Below screenshot: What is wrong, and how I can fix it?
You should give a variable the result of the function as value, then reference it, like this:
const range = (min, max) => [...Array(max - min + 1).keys()].map((i) => i + min); let a = range(1, 5); a;
This way it displays the result:
Calculating the value of it wont display the result by default.
You should give a variable the result of the function as value, then reference it, like this:
This way it displays the result:
Calculating the value of it wont display the result by default.