Hal-hal yang Perlu Diperhatikan Oleh Pemula Ketika Belajar Javascript

Belajar Javascript dapat meningkatkan kemampuan web developer  untuk membuat sebuah halaman website terlihat lebih interaktif dan dinamis. Dengan halaman yang terlihat interaktif, maka Anda dapat menarik perhatian serta meningkatkan engagement pengguna dan pengunjung website.

Saat ini, Javascript menjadi salah satu bahasa pemrograman yang populer serta banyak digunakan oleh web developer Indonesia. Belajar Javascript merupakan langkah yang tepat jika Anda masih pemula, karena bahasa pemrograman ini termasuk bahasa yang mudah untuk dipelajari jika dibandingkan dengan bahasa pemrograman yang lain. Selain ini, bahasa ini juga dinilai lebih cepat dan ringan daripada bahasa yang lain. Jika Anda tertarik untuk belajar Javascript berikut beberapa hal yang harus Anda perhatikan.

Hal pertama yang perlu Anda siapkan

Terdapat beberapa hal yang harus Anda persiapkan untuk belajar Javascript , yaitu :

1. Web Browser ( Google Chrome, Firefox, Opera, dan lain-lain )

2. Teks Editor ( Sublime, VS Code, Atom, dan lain-lain )

3. Web Server yang nantinya Anda gunakan untuk menjalankan kode program

Baca Juga: 7 Bahasa Pemrograman Terpopuler di Indonesia yang Bisa Anda Pelajari

Aturan Penulisan Kode Javascript

1. Penulisan dengan Embed

Penulisan menggunakan teknik Embed memanfaatkan tag yang biasanya disisipkan di dalam tag <body > atau <head >. Namun disarankan untuk menambahkan kode embed pada tag <body> dikarenakan loading akan lebih cepat.

2. Penulisan InLine

Dengan teknik ini, Anda akan menuliskan kode Javascript di dalam atribut HTML. Cara ini pada umumnya digunakan untuk memanggil suatu  fungsi pada event tertentu. Sebagai contoh, ketika Anda mengklik sebuah tombol, maka akan muncul notifikasi atau peringatan.

3. Penulisan Kode Eksternal

Pada teknik eksternal, Anda akan menulis kode Javascript terpisah dengan file HTML. Teknik ini biasanya digunakan untuk proyek besar, karena dipercaya dapat mempermudah pengelolaan kode project.

4. Case Sensitivy atau Perbedaan Penulisan Huruf

Ketika belajar Javascript Anda harus memperhatikan penulisan huruf besar dan huruf kecil yang harus dibedakan. Penulisan variabel, keyword, atau fungsi di dalam Javascript harus tetap konsisten. Karena penulisan variabel “nama”, “Nama”, dan “NAMA” merupakan 3 variabel yang berbeda.

5. Cara penulisan komentar

Javacsript mendukung 2 jenis cara penulisan komentar yaitu menggunakan satu baris dan mencakup beberapa baris.

6. Penggunaan Karakter

Penulisan karakter seperi spasi, enter, atau karakter lainnya akan diabaikan ketika pemrosesan Javascript. Karakter ini dapat Anda gunakan untuk menjororkkan ( indent) kode program agar lebih mudah untuk dibaca.

Baca Juga: 5 Tahap Belajar Web Programming

43 thoughts on “Hal-hal yang Perlu Diperhatikan Oleh Pemula Ketika Belajar Javascript

  1. If you would like to increase your experience
    just keep visiting this web page and be updated with the latest gossip
    posted here.

  2. I am really inspired along with your writing abilities as well as
    with the format to your weblog. Is this a paid theme or did you customize it
    your self? Anyway keep up the excellent quality writing, it is uncommon to peer
    a great weblog like this one today..

  3. Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this
    for quite some time and was hoping maybe you would have some experience with
    something like this. Please let me know if you run into anything.
    I truly enjoy reading your blog and I look forward to your new updates.

    Also visit my homepage – game 918kaya

  4. Excellent blog here! Also your website loads up very fast!
    What web host are you using? Can I get your affiliate link to your host?

    I wish my website loaded up as quickly as yours lol

  5. These are actually fantastic ideas in on the
    topic of blogging. You have touched some good factors here.
    Any way keep up wrinting.

  6. Howdy! I realize this is somewhat off-topic however I needed to ask.
    Does building a well-established website such as yours require a large amount of work?
    I am completely new to running a blog but I do write in my diary on a
    daily basis. I’d like to start a blog so I will be able to share my personal experience and feelings online.
    Please let me know if you have any kind of recommendations or tips
    for brand new aspiring blog owners. Appreciate it!

  7. I just like the helpful info you supply for your articles.
    I’ll bookmark your weblog and take a look at again right here regularly.
    I’m reasonably certain I will be informed lots of new stuff
    proper right here! Good luck for the next!

    Feel free to visit my webpage – hengheng2 rollex11

  8. I don’t even know how I finished up right here,
    however I believed this put up was once great.
    I don’t realize who you’re however definitely you’re going to a famous blogger if you happen to aren’t already.

    Here is my homepage: bussy888 (Ulysses)

  9. Hi! I know this is sort of off-topic however I needed to ask.
    Does operating a well-established website such as yours require a large
    amount of work? I am brand new to operating a blog but
    I do write in my journal daily. I’d like to start a blog so I will be able to share my own experience and thoughts online.
    Please let me know if you have any ideas or tips for brand new aspiring bloggers.

    Have a look at my web site – live22 apk download android

  10. Great goods from you, man. I have remember your stuff previous to and you are simply too fantastic.
    I really like what you’ve bought here, certainly like what you are saying and the best way through
    which you assert it. You are making it entertaining and you still take care of to stay it wise.
    I can not wait to read much more from you. This is
    really a tremendous site.

    Check out my web-site – www joker888 net

  11. Have you ever thought about creating an ebook or guest authoring on other sites?
    I have a blog based upon on the same ideas you discuss
    and would love to have you share some stories/information. I know
    my readers would enjoy your work. If you are even remotely interested,
    feel free to shoot me an email.

  12. I don’t even know the way I ended up here, however I assumed this put up was once great.
    I do not realize who you’re however definitely you’re going to
    a well-known blogger should you aren’t already.

  13. I’m not sure exactly why but this weblog is loading extremely slow for me.

    Is anyone else having this problem or is it a problem on my end?
    I’ll check back later and see if the problem still exists.

  14. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something.
    I think that you can do with some pics to drive the message home a bit, but other than that, this is excellent blog.
    A great read. I will definitely be back.

  15. Wonderful goods from you, man. I’ve keep in mind your stuff previous to and you’re simply extremely magnificent.
    I actually like what you have obtained here, really like what you’re saying and the best way in which you assert it.
    You’re making it entertaining and you continue to care
    for to keep it wise. I cant wait to read far more from
    you. That is really a wonderful website.

  16. hi!,I love your writing so so much! proportion we communicate
    more approximately your article on AOL? I need a specialist on this house to resolve
    my problem. May be that is you! Having a look
    forward to see you.

  17. whoah this weblog is wonderful i really like reading your posts.
    Stay up the great work! You realize, a lot of persons are searching round for this info, you can help them greatly.

  18. Hey there! I could have sworn I’ve been to this blog before but after checking through some of the post I realized it’s new to me.
    Anyhow, I’m definitely delighted I found it and I’ll be bookmarking and checking back often!

  19. I’m impressed, I must say. Rarely do I encounter a blog that’s
    both educative and engaging, and let me tell you, you’ve hit the nail on the head.
    The problem is something which too few people are speaking intelligently
    about. Now i’m very happy I found this in my hunt for something relating to this.
    cheap flights http://1704milesapart.tumblr.com/ cheap flights

  20. 944067 30226Keep up the great work , I read couple of weblog posts on this web site and I believe that your web site is real interesting and has bands of very good info . 505242

  21. I’m amazed, I have to admit. Seldom do I
    encounter a blog that’s equally educative and engaging,
    and without a doubt, you’ve hit the nail on the head.
    The issue is something too few folks are speaking intelligently
    about. I am very happy I found this in my search for something regarding

Leave a Reply

Your email address will not be published.

Berita / Artikel lainnya