How to add a key/value object?

I'm going to parse html . In html there are lists ul>li I will be adding the key is the text in a ul , and the value of li , but can't figure out how to add them to the object.
What kind of method cat-th creates a new key and value ?
// piece of code is not parsing html , but will give an understanding of how to do it . Thank you!
var obj = {};
var mass = ['Number1', 'Number2'];
 for(var i=0; mass.length; i++){

}
// How to make such an object
obj = {
 Number1 = '0';
 Number2 = '1'
}
July 8th 19 at 15:49
1 answer
July 8th 19 at 15:51
Solution
obj[mass[i]] = i
Thanks , blunted ) - damian_Wym commented on July 8th 19 at 15:54

Find more questions by tags JavaScriptJSONOOP