numobj:any={} ngOnInit(){ numobj["positive"]={ "ODD":[1,3,5,7], "event":[2,4,6,8] } console.log(numobj) }