How to create object fields dynamically based on values in Javascript

welcome to shbcf.ru