From novice to JAVA SCRIPT for all
Rapid Javascript Training (Pluralsight) :- https://jsfiddle.net/hanumesh/sqmb4o5b/1/ 1) var total = 5.1 + 3.3 console.log (total); output :- 8.399999999999999 ======================================================================== http://javascriptissexy.com/oop-in-javascript-what-you-need-to-know/ Various ways to create an object:- 1) ubiquitous object literal pattern :- var myObj = {name: "Richard" , profession: "Developer" }; 2) You can use the prototype pattern, adding each method and property directly on the object’s prototype :- function Employee() { Employee.prototype.firstName = "Hanumesh"; }; var hanu = new Employee() console.log (hanu.firstName); 3) You can also use the constructor pattern, a constructor function (Classes in other languages, but Functions in JavaScript). function Employee1(name, age) { this.name = name; this.age = age; }; var hanu = new Empl...