// DO NOT CHANGE THE LINE BELOW.
const n = prompt("Enter a number: ");

/*
TODO: Create a string of even numbers from 0 to n inclusively,
with a comma as separator between two consecutive
even numbers.
For example: if n = 10, the result is “0,2,4,6,8,10”
*/

let result = ‘’;

for (let i = 0; i < n; i++) {
result += $\n;
}

// DO NOT CHANGE THE LINE BELOW.
console.log(result)

Everything? You didn’t perform any checks to only log the even numbers and you aren’t concatenating result with the even numbers you’re supposed to be checking.

Thanks for reminding me I’m new to this. I am also not the brightest star in the sky.
I’ll work on your suggestions one at a time. Perform checks for even numbers.

// DO NOT CHANGE THE LINE BELOW.
const n = prompt("Enter a number: ");
/*
TODO: Create a string of even numbers from 0 to n inclusively,
with a comma as separator between two consecutive
even numbers.
For example: if n = 10, the result is “0,2,4,6,8,10”
*/
let result = ‘0’; // given
for (let i = 0; i <= n; i++) {
// check if i is an even number, hint use modulo
// if yes, add to result string result += `,${i}`;
// otherwise do nothing and continue looping
}
// DO NOT CHANGE THE LINE BELOW.
console.log(result)