Hi Friends,
I thought it would be nice to share some cool, good Java-script coding Practice. Recently, I attended one of my friend’s Native-Script conference (For more info around Native Script, read here http://nativescript.org/). There I found, people struggling with new kind of JavaScript syntax. I would recommend all web developers, prospective full stack developers, graduates, anyone, wherever writing any form of JavaScript code, make prototyping style in your DNA.
Let me give few examples around it. Below is the sample HTML and script. Code is very simple and self explanatory. However, to make it more clear, I have also put comments around the same. Also, while writing the same, you can see below screenshot, editor is helping at every point. I am using webstorm here. You can use any of your favorite editors.