In the world of programming, those who are knowledgeable in the field of
digital information platforms usually share the revisions and shortcuts they themselves have happened upon between themselves. This is the exact opposite of what hardware manufacturers do. Yes, they don't share the prototype design of the electronic gizmos they produce. But with the software industry, there's even a thing called open source development! Thus, this feature of open source development generally speeds up the process of development. Plus, this feature can also be found in the programming or developmental languages themselves! I would like to specify JavaScript programming on this post.
With
JavaScript programming, I technically know of a shortcut which would generally ease your programming burdens quite a bit. It involves value assignments you hand the variables in those scripts of yours. I bet you do this separately even though you would be wanting to assign the exact values for a number of variables. So, I would gladly provide you with a tip that could bunch up those variables so as to assign the same value to each of them. Quite a time-saving trick now, ain't it? Thus, here are the codes, shown below, and please kindly share it to the novice programmer friends of yours.
< - start of code - >
var one = 1;
var two = 2;
var three = 3;
alert (one + two + three); // Result is 6
one = two = three = 0;
alert (one + two + three); // Result is 0
< - end of sample - >