JavaScript is an Object oriented programming (OOP) language.
JS is an object-oriented programming language (object-oriented). (This is based on object or object-oriented, you can search below)
An OOP language allows your to define your own objects and make your own.
Oop language allows you to customize object and variable types.
--------------------------------------------------------------------------------
Object Oriented Programming
Programming of the object being placed
JavaScript is an Object oriented programming (OOP) language. An OOP language allows your to define your own objects and make your own.
JS is (OOP) language, which allows you to define .... (and the repetition above)
However, creating your own objects would be explained, the later JavaScript section. We'll start by looking in the built-in JavaScript objects, and how they are used. The next pages would explain each built-in JavaScript object in detail.
However, we will be later in the advanced JS to introduce the establishment of custom objects. We will begin to look at the built-in JS objects and how to use them. The next page describes each of the built-in JS objects in detail
Note This is just a special kind of data. An object has properties and methods.
Note that objects are only special types of data. Objects have properties and methods
--------------------------------------------------------------------------------
Properties
Property
Properties are the values associated with an object.
property is a connected value of an object
In the following example we are using the ' the ' of the ' String ' to return the number of characters in a str Ing:
In the following example, I use the Length property of the string object to return the number of characters:
<script type= "Text/javascript" >
var txt= "Hello world!"
document.write (Txt.length)
</script>
The output of the code above would be:
The code above will output:
12
--------------------------------------------------------------------------------
Methods
Method
Methods are the actions of that can is performed on objects.
Object can perform the behavior.
In the following example we are using the toUpperCase () method of the the String object to display a text in uppercase letters :
The following example uses the toUpperCase () method of the string object to display the upper case of the text:
<script type= "Text/javascript" >
var str= "Hello world!"
document.write (Str.touppercase ())
</script>
The output of the code above would be:
The above code output:
HELLO world!