Watch Our YouTube Channel
It is currently Sun Dec 17, 2017 11:17 pm

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Apr 28, 2015 10:33 am 

Joined: Wed Feb 25, 2015 9:44 am
Posts: 82
Avoid using bad variable names.Make javascript code easy to follow.
Avoid Globals
"By reducing your global footprint to a single name, you significantly reduce the chance of bad interactions with other applications, widgets, or libraries."
- Douglas Crockford

var NameSpace = {
   name : 'Jeffrey',
   lastName : 'Way',
   doSomething : function() {...}
console.log(; // Jeffrey

Strict Coding Style:
Use Valid code . Valid code is secure code.
Comment :
“Good code explains itself” is an arrogant myth.

Comment what you consider needed - but don’t tell others your life story.
Avoid using the line comment //. /* */ is much safer to use because it doesn’t cause errors when the line break is removed.
Comments should never go out to the end user in plain HTML or JavaScript.If any other best practices in Javascript please notify me.

Choose your Apple watch
Read Latest Technology News

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: