Programming
JavaScript DOs and DONTs
JavaScript DOs and DONTs 1. Use Shortcut Notations: This code [Avoid] Is the same as [Use Instead] var lunch = new Array(); lunch[0]=’Dosa’; lunch[1]=’Roti’; lunch[2]=’Rice’; lunch[3]=’what the heck is this?’; var lunch = [ ‘Dosa’, ‘Roti’, ‘Rice’, ‘what the heck is this?’ ]; Read more…