Upgrade Skill Di ITBOX Jadi Lebih Hemat
Special Diskon 50%
Sampai 16 November 2026!
Hari
Jam
Menit
Detik
GARUDABOX

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Variabel angka dan boolean #130550
    marselwijaya95
    Participant

      hallo, saya coba bantu jawab yaa..

      di materi ada dijelaskan bahwa boolean terdiri dari 2 yaitu, true and false
      bahasa lain true = 1 atau ya ; False = 0, tidak

      var P = true (1)
      var c = 0 (false)
      var d = p + c
      = 1 + 0
      = 1
      console.log(d) = 1

      jawabanya adalah 1

      terima kasih

    Viewing 1 post (of 1 total)
    Shopping cart0
    There are no products in the cart!
    Continue shopping