JavaScript: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
→Variabel: sunting isi |
Sunting isi |
||
Baris 85:
let jumlah = angkaPertama + angkaKedua;
</syntaxhighlight>
== Tipe data ==
Dalam JavaScript, tipe data dibedakan menjadi tipe data primitif dan non-primitif. <ref>{{Cite web|title=JavaScript data types and data structures - JavaScript {{!}} MDN|url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures|website=developer.mozilla.org|language=en-US|access-date=2022-09-15}}</ref>
=== Tipe data primitif ===
* Boolean
* Null
* Undefined
* Number
* BigInt
* String
* Symbol
=== Tipe data non-primitif ===
* Object
* Array
== Penulisan JavaScript ==
|