Help

How do I turn a list of titles into a numbered list? can’t find an example on here for how to do that only ones that include only numbers and i cant seem to get anywhere with that. Thanks in advanced.

What code have you written so far?
Is there a link to the lesson? Is it JS or Python?

Have you learned about forEach(), yet? That would be the simplest way to create an enumerated list. There is also plain iteration of the array with in instead of of which will expose the keys:

const arr = 'abcdefghijklm'.split('');
for (let k in arr) {
    console.log(`${k}: ${arr[k]}`)
}
0: a
1: b
2: c
3: e
4: d
5: e
6: f
7: g
8: h
9: i
10: j
11: k
12: l
13: m

We are able to do this because Array is an Object, without the keys being exposed (when we adhere to of, not in when iterating). Will leave it for the reader to explore this in greater depth on their own time.

If we wish to keep everything in array form, we simply pair up the values in nested arrays.

for (let i = 0; i < a.length; i++) {
    a[i] = [i, a[i]]
}

We can create a new object from the entries:

const obj = Object.fromEntries(arr);