Hi, Here is a sample code which will explain the concepts of oops in javascript . Functions The most basic purpose of a function is to contain code. A function's advanced features are that it can take parameters and return values. Once we have defined a function, we can call it from anywhere, and any number of times. Functions As we see , Hello is written to the screen. In JavaScript, we do not have to define the function before we use it, so we could equally type : hello(); function hello() { document.write('Hello'); } To see the power of functions, we could also type : function hello() { document.write('Hello'); } hello(); hello(); Now we see two Hello's - because we have called the function twice. Note that the code for a function MUST be contained by curly brackets {}, even if the code is only one line. So, function hello() document.write('Hello'); is not legal JavaScript, although it looks like it should be. Param...