MAKALAH PEMROGRAMAN WEB “JAVASCRIPT”



KATA PENGANTAR



Puji syukur atas kehadirat Tuhan Yang Maha Esa penulis dapat menyelesaikan makalah ini. Karena makalah ini dapat selesai dengan baik dan tepat waktu.  Penulis menyadari bahwa dalam penyusunan makalah ini masih banyak kekurangan dan jauh dari kesempurnaan. Oleh karena itu, penulis mengharapkan kritik serta saran yang membangun guna menyempurnakan makalah ini dan dapat dijadikan acuan dalam menyusun makalah – makalah atau tugas – tugas selanjutnya.
Penulis juga memohon maaf apabila dalam penulisan makalah ini terdapat kesalahan pengetikan dan kekeliruan yang sama sehingga membingungkan pembaca dalam memahami maksud penulis.





Jakarta, 19 Januari 2017


                                    Penyusun



DAFTAR ISI

HALAMAN JUDUL
KATA PENGANTAR ………………………………………………………...
DAFTAR ISI ………………………………………………………………….
BAB I    PENDAHULUAN
1.1.      Latar Belakang ……………………………………………………….....
1.2.      Rumusan Masalah …………………………………………………........
1.3.      Tujuan Penulisan ……………………………………………………......
BAB II    PEMBAHASAN
2.1.     Sejarah Penemuan Javascipt ……………………………………………..
2.2.     Pengertian Javascipt ..........................................…………………….........
2.3.     Kelebihan & Kekurangan Javascipt ..……………………………….........
2.4.     Dasar-Dasar Pemrograman Javascipt ........................……………….........
2.5.     Aturan-Aturan Dalam Javascipt ...............................………………..........
BAB III    PENUTUPAN                                
3.1.     Simpulan …………………………………………………………............
3.2.     Saran …………………………………………………………………......
DAFTAR PUSTAKA ……………………………………………………….....






BAB I
PENDAHULUAN

1.1.   Latar Belakang Masalah
Javascript adalah bahasa script yang berdasar pada objek yang memperbolehkan pemakai untuk mengendalikan banyak aspek interaksi pemakai pada suatu dokumen HTML. Dimanaobjek tersebut dapat berupa suatu window, frame, URL, dokumen, form , button atau item yang lain. Yang semuanya itu mempunyai property yang saling berhubungan denganya dan masing – masing memiliki nama, lokasi, warna nilai, dan atribut lain. Sesuai dengan perkembangan World Wide Web (WWW) yang sangat pesat menyebabkan munculnya banyak home page dengan halaman – halaman yang sangat menarik. Halaman web yang dulunya hanya berupa teks dan gambar saja, saat ini menjadi sesuatu yang interaktif dan cerdas.
Berbicara tentang web tidak terlepas dari HTML, bahasa yang digunakan untuk membuat halaman web. HTML merupakan bahasa yang sangat mudah dipelajari, kita tidak perlu mempunyai latar belakang pemrograman untuk menggunakannya. Namun untuk membuat halaman web yang interaktif, HTML saja tidak cukup. Dua hal yang membuat web menjadi media interaktif adalah form dan CGI (Common Gateway Interface) script. Dengan Form dan CGI pembaca tidak hanya menerima informasi saja, tetapi sebaliknya juga bisa mengirimkan informasi kepada kita, ini akan menimbulkan komunikasi dua arah dan membuat web menjadi interaktif. Form merupakan sarana yang di pakai pembaca untuk memasukkan informasinya, sedangkan CGI Script bertugas untuk memproses informasi tersebut. Karena eratnya hubungan antara form dan CGI Script, maka keduanya  menjadi sangat perlu untuk kita pelajari.

1.2.    Rumusan Masalah
1.      Bagaimana Penemuan Sejarah Javascript ?
2.      Apa Pengertian dari Javascript ?
3.      Apa saja Kelebihan dan kekurangan Javascript ?
4.      Dasar – dasar Pemrograman Javascript
5.      Aturan – Aturan dalam Javascript.

1.3.   Tujuan Penulisan
1.      Mengetahui sejarah pemenuan Javascript.

2.      Mengetahui pengertian dari javascript.

3.      Mengetahui kelebihan dan kekurangan dari Javascript.

4.      Mengetahui dasar – dasar pemrograman Javascript.

5.      Mengetahui aturan – aturan dalam javascript.




BAB II
PEMBAHASAN

2.1.   Sejarah Pemenemuan Javascript
JavaScript pertama kali diperkenalkan oleh Netscape pada tahun 1995. Pada awalnya bahasa yang sekarang disebut JavaScript ini dulunya dinamai “LiveScript”” yang berfungsi sebagai bahasa sederhana untuk browser Netscape Navigator 2 yang sangat populer pada saat itu. Kemudian sejalan dengan sedang giatnya kerjasama antara Netscape dan Sun (pengembang bahasa pemrograman “Java”) pada masa itu, maka Netscape memberikan nama “JavaScript” kepada bahasa tersebut pada tanggal 4 desember 1995.
Pada saat yang bersamaan Microsoft sendiri mencoba untuk mengadaptasikan teknologi ini yang mereka sebut sebagai “Jscript” di browser milik mereka yaitu Internet Explorer 3. JavaScript sendiri merupakan modifikasi dari bahasa pemrograman C++ dengan pola penulisan yang lebih sederhana dari bahasa pemrograman C++.
2.2.   Pengertian Javascript
JavaScript adalah bahasa pemrograman berbasis prototipe yang berjalan disisi klien. Jika kita berbicara dalam konteks web, sederhananya, kita dapat memahami JavaScript sebagai bahasa pemrograman yang berjalan khusus untuk di browser atau halaman web agar halaman web menjadi lebih hidup. Kalau dilihat dari suku katanya terdiri dari dua suku kata, yaitu Java dan Script. Java adalah Bahasa pemrograman berorientasi objek, sedangkan Script adalah serangkaian instruksi program.

2.3.   Kelebihan & Kekurangan Javascript
2.3.1 Kelebihan dari Javascript
Ø  Ukuran file kecil
Script dari javascript memiliki ukuran yang kecil sehingga ketika web yang memiliki javascript ditampilkan di browser maka akses tampilannya akan lebih cepat dibandingkan ketika browser membuka suatu web yang memiliki script java. Hal ini juga sangat berkepentingan dengan daya kerja server. Semakin kecil space suatu web yang disimpan dalam suatu server maka daya kerja server ketika di browsing oleh user di internet akan tidak terlalu berat, selain itu sifat javascript client side yang tidak perlu lagi di olah oleh server ketika browser memanggil web dari sebuah server.
Ø  Mudah untuk dipelajari
Javascript merupakan bahasa semi pemograman yang merupakan gabungan antara bahasa pemograman java dengan bahasa kode HTML sehingga disebut bahasa hybrid. Walaupun javascript merupakan turunan dari java namun javascript tidak memiliki aturan yang serumit java.
Ø  Terbuka
Javascript tidak terikat oleh hardware maupun software tertentu bahkan system operasi seperti windows maupun unix. Karena ia bersifat terbuka, maka ia dapat dibuat maupun dibaca di semua jenis komputer.

2.3.2 Kekurangan dari Javascript.
Ø  Script tidak terenkripsi
Karena javascript bersifat client side, maka script yang kita buat di text editor dan telahdijadikan web di server, ketika user merequest web dari server tersebut maka sintak javascript akan langsung ditampilkan di browser. User bisa melihat dan menirunya dari sourcenya.
Ø  Kemampuan terbatas
Walaupun javascript mampu membuat bentuk web menjadi interaktif dan dinamis, namun javascript tidak mampu membuat program aplikasi sendiri seperti java.
Ø  Keterbatasan Objek
Javascript tidak mampu membuat kelaskelas yang bisa menampung objek - objek tambahan seperti java karena javascript teleh memiliki objek yang builtin pada sturktur bahasanya.

2.4.   Dasar – Dasar Pemrograman Javascript
Programmer menggunakan variabel untuk menyimpan nilai, sebuah variabel dapat menampung beberapa jenis data. Dalam Javascript kita tidak perlu mendeklarasikan tipe data suatu variabel sebelum menggunakannya. Setiap variabel dapat menampung semua tipe data Javascript, termasuk :
1.      String Data
2.      Jumlah
3.      Boolean nilai ( T / F )
Nama variabel ada aturan dan kovensi dalam pemrograman apapun bahasa. Ini adalah praktik yang baik untuk menggunakan nama deskriptif untuk variabel.

2.5.   Aturan – Aturan dalam Javascript
  1. Nama atau variabel harus  dimulai dengan huruf atau garis bawah, contoh (kelompokDelapan atau _grupDelapan)
  2. Kita dapat menggunakan nomer dalam nama variabel, tetapi bukan sebgai yang pertama nama karakter. contoh (nama15 atau biaya$)
  3. Kita tidak dapat menggunakan ruang untuk karakter terpisah.
  4. Mendaya gunakan huruf pertama setiap kata kecuali yag pertama. Contoh (salesTax atau userFirstNameVariabel)
  5. Untuk mendeklarasikan variabel, gunakan kata kunci var dan nama variabel.
  6. Untuk memberikan nilai pada variabel tambahkan tanda yang sama dan memiliki nilai.


BAB III
PENUTUPAN

3.1.   Simpulan
            Untuk mempelajari pemrograman Javascript, ada dua piranti yang diperlukan yaitu browser dan teks editor. Teks editor  adalah sebuah pengolah kata (word processor) yang menghasilkan file dalam format ASCII murni. Bila kita adalah pengguna windows 95/98 atau windows NT, kita bisa menggunakan notepad atau wordpad. Browser web yang akan kita gunakan harus mendukung Javascript, kita dapat menggunakan Netscape Navigator atau Internet Explorer. Efek dari javascript yang bekerja pada sisi browser ini, Javascript dapat merespon perintah user dengan cepat, dan membuat halaman web menjadi lebih responsive. Javascript melakukan apa yang tidak bisa dilakukan oleh HTML,PHP, dan CSS.        
3.2.   Saran
Bagi kalian semua yang mau mempelajari tentang Javascript jangan lupa untuk mempunyai piranti yang telah disebutkan diatas yaitu browser dan teks editor.



DAFTAR PUSTAKA

http://ecelenc.blogspot.com/2009/07/kelebihan-dan-kekurangan-javascript.html
https://armegvirtual.wordpress.com/javascript/fungsi-javascript/
http://tekomputer-laptop.blogspot.com/2012/09/sejarah-dan-pengertian-javascript.html
https://kitty60.wordpress.com/2011/06/12/laporan-javascript/
http://id.wikipedia.org/wiki/JavaScript

Belum ada Komentar untuk "MAKALAH PEMROGRAMAN WEB “JAVASCRIPT” "

Posting Komentar

Electric Smart Cars - Rational Reasons and Results When Buying One There are many reasons for buying any electric smart car, hybrid electric or plugin hybrid electric vehicle. The soaring costs of gas is likely the biggest and most pressing issue when considering buying an electric car. The environment and the planet is another concern. Whatever the reason, buying any BEV, PHEV or green planet-friendly automobile instead of that fossil-fuel burning internal combustion engine car, we'll certainly have a positive effect on helping save the planet and save you money as well. In order to make a smart electric car buying decisions, it is important to understand what the different types of electric-powered vehicles, and how smart electric cars work. There are three types of electric assisted vehicle that utilize an electric motor of some kind. The battery electric vehicle (BEV) is as the name suggests-a battery powered vehicle. There is no other power source for the vehicle, no internal combustion engine (ICE) running on gasoline, and therefore the battery must be charged between uses, and will discharge during use until it runs out. At this point the vehicle can no longer run, so you'll need to be near a charging point before you run out of gas, I mean electric juice. Two types of hybrid electric vehicles offer the best of both the electric and the ICE vehicle worlds. The hybrid electric vehicle (HEV) uses an electric motor to either propel the car or to increase the power. Generally the result of this is to extend the distance that it can travel on a tank of fuel, giving the hybrid electric car better fuel economy. Lastly there is the plug-in hybrid electric vehicle (PHEV). This runs in a largely similar way to the HEV but with one major difference-the battery can be plugged into a charging point, in order to completely charge the battery to its maximum capacity. The HEV by comparison can only charge its battery with the current generated by its ICE, or through regenerative breaking (a process in which energy is reclaimed during breaking rather than lost). By fully charging the battery the use of electrical power can be prolonged, and the use of gasoline reduced, making the PHEV the more economical of the hybrid electric vehicles. The drive-train of a BEV is very simple-a battery powers the motor, which propels the electric vehicle. The hybrid electric vehicles will run an ICE and electric motor either in parallel or in series, with both the ICE and electric motor being able to move the electric or hybrid electric vehicle. A capacitor allows energy to be channeled back into the battery too, and in the case of the PHEV a separate charging circuit like that of the BEV is included to separately charge the hybrid electric vehicle. There are two types of battery that are used in BEV, PHEV and HEV cars. Nickel metal hydride batteries are an older technology, and one that suffers from battery degradation more quickly than others. Newer, lithium-ion batteries are far more efficient, as well as longer lasting in both electric and hybrid electric vehicles. They don't suffer from memory formation like nickel metal hydride batteries, and tend to be able to provide more power for the engine than the alternative. Older hybrid electric vehicles may still use lead-acid batteries, but these are generally now considered bad for the environment, and are no longer used. There are pros and cons to making the move to an electric or hybrid vehicle. They are cheaper to run than ICE cars and have good speed, and hybrid electric vehicles have good range too. But the BEV class can run generally for only up to 40-200 miles, leading to what is known as range anxiety. Hybrid electric vehicles overcome by using the ICE as well, giving vastly superior range. Another downside is that the batteries wear out and need replacing. This is an expensive part on the car, and on a BEV the battery failure means that the car will completely fail to run. A hybrid at least has its ICE on which to fall back. However, the overall running costs to the owner are far less than for a vehicle with an ICE. The electric or hybrid electric vehicle has less moving parts and so less chances of failure that needs repair. Fuel efficiency of a hybrid is hugely increased, saving money for every mile driven, and for a BEV is even less as electrical energy is cheaper than gas. One of the biggest benefits to these vehicles is to the planet. Our oil reserves are finite and dwindling, and their continued use in this way further pollutes the environment. Moving to electric or hybrid electric vehicles will drastically reduce the pollutants emitted, and will slow the rate at which our planet's natural resources are exhausted. As far as the economy is concerned, electric and hybrid vehicles could be very positive development. The production of large numbers of these vehicles would require the building or converting manufacturing factories, and the hiring of workers to staff the factories. Claims are often made that our economy is heavily reliant on oil, and that moving away from it would destroy us, but the truth is quite different. By embracing these technologies, our economy can shift its dependence from oil onto alternatives, just as our motoring needs do. An all-electric or hybrid vehicle may cost a little more to insure than a gas vehicle. Though a small saving is possible thanks to the improved risk profile of people who own electric vehicles, other costs are higher. However, repairing electric or hybrid vehicles currently costs more because there are fewer of these vehicles on the road, and because spare parts are less abundant. This increases repair costs, which insurance companies pass on to owners. Savings in running costs can help offset this. Options are varied when considering purchasing one of these cars, giving potential owners a good range of choice when it comes to the power, size and range of their vehicle. The following are currently available or soon to be released, highway ready environmentally-friendly cars. Full details are not available for some of those cars that are not yet on sale. The Nissan Leaf is an all electric car doing 100 miles per charge and up to 90 mph, and starting at $33,720. This is a modern looking car with a reasonable range, and a competitive pricing. The Tesla Roaster is also all-electric, with an incredible 245 miles per charge, 125 mph top speed, and costs starting at $101,500. This is a stunning looking car with an equally stunning performance-and a range like no other electric car. The Smart-ED all-electric model has a 98 mile maximum range, and a top speed of 60 mph. This small car will be perfect for city driving. Starting at $599 a month for a four year lease. Ford's own all electric car-the Ford Focus has yet to be released but is expected to have a range in excess of 100 miles per charge. This car will be available from late 2011, and looks to provide all of the high-tech options that people may want, in a very stylish exterior. Final price and other details have yet to be released. Chevrolet's Volt is a PHEV that is capable of speeds of 100 mph. Fuel economy depends on how often you charge the battery, with official figures released at 60 mpg using gas and electric combined. Prices start at $32,780, giving this a reasonable price tag along with good performance. Toyota's Prius is a PHEV that has an incredible range of 475 miles on a single tank of gas, when using combined gas and the electric motor. Unfortunately, since it won't be available till early 2012 there are no more details regarding performance and pricing. A full hybrid version of the Toyota Prius is also available, with a base price of $23,520. With a combined mileage of 50mpg and a top speed of 112 mph, it has enough power and efficiency for anyone. This is a tried and trusted hybrid car with a good reputation. Ford's Fusion has a hybrid version as well, with a starting price of $19,820. With a 700 mile range per full tank of fuel, and 41 mpg, it is powerful and sleek, and has the range to take you wherever you want to go. The Escalade hybrid from Cadillac is a luxury SUV, and so it's price tag is a little larger, at $74,135. Fuel efficiency is good for an SUV at up to 23 mpg and a range of up to 575 miles per tank. This SUV balances the needs of a larger family with the desire to be a little more environmentally friendly, and does so with incredible style.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel