Automated nested objects
问题 A couple of days ago I was having fun with some js, when I came to the question if I could automate object nesting. Of course I'm still a newby so I haven't gotten too far. But what I got is this: var a = {}; var stso = ""; storing the second object function sto(b) { // start the object a[b] = {}; stso = b; } function nmo(...objs) { // nesting more object console.log(objs[0]); if(objs.length) { // checking to see that I have at least one variable before proceding for(i = 0; i < objs.length; i