sainture
6/4/2016 - 10:42 AM

General tips

General tips

1. It is better to have the JavaScript tags at the end of the body tag than in the head tag to avoid delays in the page load.

2. we should always use === and !== instead of == and != in JavaScript.
The == operator will compare for equality after doing any necessary type conversions.
3 == "3"  // true
3 === "3" // false
See this link for more details: http://appendto.com/2016/02/vs-javascript-abstract-vs-strict-equality/