User Rating: 2 / 5

Star ActiveStar ActiveStar InactiveStar InactiveStar Inactive
 

In JavaScript , it will attempt to assume that everything is an object (Objects) to do it. This is for ease of programming objects (Objects) , but it is composed of two main elements .

 

1. Properties are values associated with objects.

Object is assumed that the shirt was too Properties shirt brand, weight, color, price.

Suppose you Propeties Object as it 's you, it's like sex, age , weight and height .

Example:

<html>
<body>
<script>
var shirt=new Object();
shirt.name="Billabong";
shirt.color="blue";
shirt.price="60 USD"; 
document.write("The brand is - " +shirt.name +"<br> The Color is - " + shirt.color + "<br>Price - " +shirt.price);
</script>
</body>
</html>

This is the result:

 

2. Methods are actions that objects can perform.

Radio. Play () Play the tape. 

Radio. Stop () stops 

Door. Lock () Locks 

Cars. Brake () stop. 

Example:

<html> 
<body> 
<script> 
var str = new String ("MindPHP"); 
document.write (str.link ("http://www.Mindphp.com")); 
</script> 
</body> 
</html>

This is the result:

 

 

Next

 

Recent Topics
Subject
Post Reply
Open
Recent
Features Review : Mhosting Components untuk mengumpul Packet hosting
By abdkode Mon 22 Apr 2019 6:50 pm Board Bahasa Language
0
1915
Mon 22 Apr 2019 6:50 pm By abdkode
Features Review : Components MD Gallery untuk membuat gelari dalam laman web
By abdkode Mon 22 Apr 2019 6:49 pm Board Bahasa Language
0
4143
Mon 22 Apr 2019 6:49 pm By abdkode
3 Investment Worthly in Thaland
By wannapat Tue 19 Mar 2019 4:38 pm Board Chinese Language - 简体中文
0
16318
Tue 19 Mar 2019 4:38 pm By wannapat
Features Review : Plugin Addons Payment Omise untuk membuat pembayaran melalui Omise
By abdkode Mon 11 Mar 2019 6:58 pm Board Bahasa Language
0
2362
Mon 11 Mar 2019 6:58 pm By abdkode
Features Review : Memperkenalkan Mooziicart untuk Joomla
By abdkode Thu 07 Mar 2019 7:06 pm Board Bahasa Language
0
2794
Thu 07 Mar 2019 7:06 pm By abdkode
Features Review : Plugin M Product Match untuk menghungkan produk dengan artikel
By abdkode Thu 07 Mar 2019 6:19 pm Board Bahasa Language
0
2860
Thu 07 Mar 2019 6:19 pm By abdkode
Features Review : Module MD Client History modul memapar sajarah yang telah masuk
By abdkode Tue 05 Mar 2019 7:15 pm Board Bahasa Language
0
2019
Tue 05 Mar 2019 7:15 pm By abdkode
Features Review : Plugin M Animate Number untuk memaparkan nombor yang bergerak
By abdkode Mon 04 Mar 2019 7:02 pm Board Bahasa Language
0
2279
Mon 04 Mar 2019 7:02 pm By abdkode
Features Review : Plugin PayToRead untuk mempaparkan teks hanya sebahagian
By abdkode Mon 04 Mar 2019 7:01 pm Board Bahasa Language
0
2469
Mon 04 Mar 2019 7:01 pm By abdkode
Features Review : Component MFacebook untuk membantu pendaftaran laman web dgn Facebook
By abdkode Mon 04 Mar 2019 6:57 pm Board Bahasa Language
0
3015
Mon 04 Mar 2019 6:57 pm By abdkode
Features Review : MJClone untuk mengklon laman web joomla dan backup
By abdkode Thu 28 Feb 2019 6:59 pm Board Bahasa Language
0
3310
Thu 28 Feb 2019 6:59 pm By abdkode
Features Review : Module Mrelated Article Specific Category untuk menyimpan sejarah lawatan
By abdkode Thu 28 Feb 2019 6:48 pm Board Bahasa Language
1
2126
Tue 27 Oct 2020 6:07 pm By prmindphp
Features Review : Plugin MLinkarticle untuk menghubungkan konten artikel kepada artikel yang berkaitan
By abdkode Tue 26 Feb 2019 6:37 pm Board Bahasa Language
0
2684
Tue 26 Feb 2019 6:37 pm By abdkode
Features Review : Plugin Authentication untuk login Joomla dengan phpBB
By abdkode Tue 26 Feb 2019 6:29 pm Board Bahasa Language
0
3572
Tue 26 Feb 2019 6:29 pm By abdkode
Features Review : untuk menghasilkan link memuat naik video pada artikel, Joomla 2.5, 3.x
By abdkode Tue 26 Feb 2019 5:26 pm Board Bahasa Language
0
2203
Tue 26 Feb 2019 5:26 pm By abdkode
Features Review : Plugin MVDO untuk memuat naik video Youtube dan Clipmass
By abdkode Mon 25 Feb 2019 5:54 pm Board Bahasa Language
0
2491
Mon 25 Feb 2019 5:54 pm By abdkode
Features Review : Content Msocial untuk berkongsi kandungan artikel ke Facebook, Twitter, Google Plus dan Line
By abdkode Mon 25 Feb 2019 4:56 pm Board Bahasa Language
0
2083
Mon 25 Feb 2019 4:56 pm By abdkode
Features Review : Module Mod slideshowck untuk membantu memaparkan imej dan video Youtube secara slaid
By abdkode Mon 25 Feb 2019 2:19 pm Board Bahasa Language
0
2170
Mon 25 Feb 2019 2:19 pm By abdkode
Features Review : Mod MD recent untuk menunjukkan Papan phpbb pada Joomla.
By abdkode Fri 22 Feb 2019 6:59 pm Board Bahasa Language
0
2812
Fri 22 Feb 2019 6:59 pm By abdkode
Features Review : Mod vinaora visitors counter untuk menghitungkan pelewat laman web di joomla
By abdkode Fri 22 Feb 2019 4:17 pm Board Bahasa Language
0
2741
Fri 22 Feb 2019 4:17 pm By abdkode