how does OOP work in java script code example Example: is javascript object oriented var js = new JavaScript(); js.isObjectOrientated = true;