Quantcast
Channel: Latest Questions by t9s1n2
Viewing all articles
Browse latest Browse all 40

Is there a shorter way to write this code?

$
0
0
For example something like l.type+type = null; ? if (type == 0) { l.type0 = null; } if (type == 1) { l.type1 = null; } if (type == 2) { l.type2 = null; } if (type == 3) { l.type3 = null; } if (type == 4) { l.type4 = null; } if (type == 5) { l.type5 = null; }

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>