object oriented programming using javascript code example
Example 1: js oop
var salva = createNewPerson('Salva');
salva.name;
salva.greeting();
Example 2: is javascript object oriented
var js = new JavaScript();
js.isObjectOrientated = true;
var salva = createNewPerson('Salva');
salva.name;
salva.greeting();
var js = new JavaScript();
js.isObjectOrientated = true;