You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/01-hello-world/article.md
+2-17Lines changed: 2 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,6 @@
1
1
# Hello, world!
2
2
3
-
<<<<<<< HEAD
4
-
Bagian dari tutorial ini ialah tentang inti JavaScript itu sendiri. Nanti, kamu akan belajar tentang Node.js dan platform lain yang menggunakannya.
5
-
=======
6
-
This part of the tutorial is about core JavaScript, the language itself.
7
-
>>>>>>> 8c30654f694fe8682f5631809980be931ee4ed72
3
+
Bagian dari tutorial ini ialah tentang inti JavaScript itu sendiri.
8
4
9
5
Tapi kita butuh lingkungan kerja untuk menjalankan scripts kita dan, karena buku ini online, peramban adalah pilihan yang baik. Kita akan menjaga supaya jumlah perintah yang spesifik peramban (seperti `alert`) seminimum mungkin sehingga kamu tak boros waktu di situ jika kamu berencana untuk fokus ke lingkungan lain (seperti Node.js). Kita akan fokus ke JavaScript di peramban dalam [bagian selanjutnya](/ui) dari tutorial ini.
10
6
@@ -49,13 +45,8 @@ Tag `<script>` mengandung kode JavaScript yang otomatis dieksekusi ketika peramb
49
45
50
46
Tag `<script>` punya beberapa attribut yang jarang dipakai akhir-akhir ini tapi masih bisa ditemukan dalam kode lama:
: Standar HTML lawas, HTML4, mengharuskan script memiliki `type`. Biasanya `type="text/javascript"`. Sekarang sudah tak diperlukan. Selain itu, standar HTML modern, HTML5, menguubah total makna atribut ini. Sekarang, ia bisa digunakan untuk modul JavaScript. Tapi itu topik berat; kita akan membahas modul di bagian lain dari tutorial ini.
55
-
=======
56
-
The `type` attribute: <code><script <u>type</u>=...></code>
57
-
: The old HTML standard, HTML4, required a script to have a `type`. Usually it was `type="text/javascript"`. It's not required anymore. Also, the modern HTML standard totally changed the meaning of this attribute. Now, it can be used for JavaScript modules. But that's an advanced topic; we'll talk about modules in another part of the tutorial.
: Atribut ini untuk menampilkan bahasa script. Atribut ini tak lagi dibutuhkan karena JavaScript adalah bahasa default. Tak usah menggunakan itu lagi.
@@ -82,13 +73,7 @@ File script ditempel ke HTML dengan atribut `src`:
82
73
<scriptsrc="/path/to/script.js"></script>
83
74
```
84
75
85
-
<<<<<<< HEAD
86
-
Di sini, `/path/to/script.js` adalah jalur ke file script (dari root sitius).
87
-
88
-
Kamu juga bisa menyediakan jalur relatif dari laman ini. Misalnya, `src="script.js"` berarti file `"script.js"` dalam folder saat ini.
89
-
=======
90
-
Here, `/path/to/script.js` is an absolute path to the script from the site root. One can also provide a relative path from the current page. For instance, `src="script.js"` would mean a file `"script.js"` in the current folder.
91
-
>>>>>>> 8c30654f694fe8682f5631809980be931ee4ed72
76
+
Di sini, `/path/to/script.js` adalah jalur absolut ke file script dari root sitius. Kamu juga bisa menyediakan jalur relatif dari laman ini. Misalnya, `src="script.js"` berarti file `"script.js"` dalam folder saat ini.
0 commit comments