Is it bad practice to not assign a new object to a variable?

前端 未结 5 709
孤街浪徒
孤街浪徒 2020-12-28 18:56

Is it bad javascript practice to not assign a newly created object to a variable if you\'re never going to access it?

For example:

for(var i=0;i

        
5条回答
提交回复
热议问题