How to make array or list of elements in Oxygen

How I can make array or list of elements in Oxygen and to screen them in the console

list = [1,2,3];
log.info(list);

Let me know if that is what you were expecting.

I want to create list from elements
for example this variable contains different strings:
let hiz = web.getText(’//*[@class=“ui-multiselect-checkboxes ui-helper-reset”]’);
how I can convert this variable to the list?