Biter
August 24, 2024, 5:32pm
1
const range = (start, end) => Array(end - start + 1).fill(start).map((element, index) => element + index);
const charRange = (start, end) => {};
window.onload = () => {
const container = document.getElementById(“container”);
const createLabel = (name) => {
const label = document.createElement(“div”);
label.className = “label”;
label.textContent = name;
container.appendChild(label);
}
}
Step - 10 charRange issue:
I haven’t been able to find the syntax for this problem. Help, please.
Hello.
I have edited your code to include a link to the lesson and a proper title.
However, your code is lacking. Helpers need to see what you’ve already tried.
Biter
August 25, 2024, 3:06am
3
MDN was where I finally was to learn what will work in this step.
Biter
August 25, 2024, 5:26am
4
Well, that actually didn’t work sorry about that request for a solution.
The function should implicitly return the result of calling range()
with start and end as the arguments.
You have not returned the range()
function with the arguments start
and end
.
Remember, the implicit return didn’t need the return
keyword and body {}
for the callback function.