首页 > 解决方案 > how to make a program declare variables depending on the number of inputs

问题描述

I work on a program in which it processes information into an object describing the input. In other words it creates an object for each input However the number of inputs is not defined so how can make the program declare variables depending on the number of inputs and use them later in the process (for exemple comparing a certain trait or sorting)

PS : I tried using arrays but It got so nested(3 levels of nesting which is hell absolutely hell especially that I am still a novice ) and so complicated and hard to debug SO I WOULD APPRECIATE A BETTER WAY TO SOLVE IT

标签: javascriptobject

解决方案


推荐阅读