From 54173cc64b0a1a8f38709bcac7a0192e3d8b584a Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Sun, 29 Jul 2018 03:19:17 +0700 Subject: [PATCH 01/16] menambahkan fungsi if pada index.js --- index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 00000000..086a8f78 --- /dev/null +++ b/index.js @@ -0,0 +1,14 @@ +var pesan1 = "hello Coding" +let pesan2 = "hello" +const pesan3 = "Coding" + +if (true) { + var pesan1 = "rubah1" + let pesan2 = "rubah2" + + console.log(pesan2) +} + + +console.log(pesan1) +console.log(pesan2) From 6e7117e9339f833fb02e6f9e51afe9a8db1abf1d Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Sun, 29 Jul 2018 04:23:03 +0700 Subject: [PATCH 02/16] add file function.js and if-else.js --- function.js | 16 ++++++++++++++++ if-else.js | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 function.js create mode 100644 if-else.js diff --git a/function.js b/function.js new file mode 100644 index 00000000..5fdb2d42 --- /dev/null +++ b/function.js @@ -0,0 +1,16 @@ +function jalanSatu(){ + console.log("jalan satu") +} + +const jalanDua = function(){ + console.log("jalan dua") +} + +jalanSatu() +jalanDua() + +const jalanTiga = () =>{ + console.log("Jalan Tiga") +} + +jalanTiga() diff --git a/if-else.js b/if-else.js new file mode 100644 index 00000000..832096c9 --- /dev/null +++ b/if-else.js @@ -0,0 +1,15 @@ +function jalanSatu(){ + var nilai = 1; + // if(nilai === 3){ + // console.log("benar") + // }else if (nilai === 2){ + // console.log("Dua"); + // } + // else { + // console.log("salah") + // } + if(nilai===1)console.log("OK"); + else console.log("Bukan"); +} + +jalanSatu() From 3608d9fc107cdcf65d96847223796c2c0bd888b2 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Thu, 2 Aug 2018 01:59:21 +0700 Subject: [PATCH 03/16] menambahlan file switch.js --- switch.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 switch.js diff --git a/switch.js b/switch.js new file mode 100644 index 00000000..1f7ea510 --- /dev/null +++ b/switch.js @@ -0,0 +1,34 @@ +const logic = function () { + var nilai = 49; + + if(nilai >=90 && nilai <=100) indeks=1 + else if (nilai >=80) indeks =2 + else if (nilai >=65) indeks =3 + else if (nilai >=50) indeks =4 + else if (nilai >= 0) indeks = 5 +} + +var result = () => +{ + logic() + + switch(indeks){ + case 1: + console.log("sangat baik") + break; + case 2: + console.log("Baik") + break; + case 3: + console.log("Cukup") + break; + case 4: + console.log("Kurang") + break; + case 5: + console.log("Kebangetan parah") + break; + } +} + +result() From b61cc76cbb35b6c276181b33d1d54dadff11179f Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 02:06:29 +0700 Subject: [PATCH 04/16] menambahkan file for.js --- for.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 for.js diff --git a/for.js b/for.js new file mode 100644 index 00000000..e447b4ee --- /dev/null +++ b/for.js @@ -0,0 +1,9 @@ +var perulangan = () =>{ + var i = 0; + for (i = 0; i < 5; i++){ + console.log("test ",i) + } +} + +perulangan() +s From 08c0bc73a8d8d10aebd66bc775a8f0c8ca4c73d6 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 02:49:58 +0700 Subject: [PATCH 05/16] mengupdate source for.js --- array.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 array.js diff --git a/array.js b/array.js new file mode 100644 index 00000000..a6857a9a --- /dev/null +++ b/array.js @@ -0,0 +1,41 @@ +const data = [[1,2,3,4,5],[6,7,8,9,10]] + +var switchcase = () =>{ +switch(data[1][3]){ + case 1: + console.log("satu") + break; + case 2: + console.log("dua") + break; + case 3: + console.log("tiga") + break; + case 4: + console.log("empat") + break; + case 5: + console.log("lima") + break; + case 6: + console.log("enam") + break; + case 7: + console.log("tujuh") + break; + case 8: + console.log("delapan") + break; + case 9: + console.log("sembilan") + break; + case 10: + console.log("Sepuluh"); + break; + default: + console.log("data tidak terhubung"); + break; + } +} + +switchcase() From a701c74fc7ffeb0434903533ca7f50d9a644a263 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 03:20:25 +0700 Subject: [PATCH 06/16] Menambahkan file nested-array.js --- nested-array.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nested-array.js diff --git a/nested-array.js b/nested-array.js new file mode 100644 index 00000000..c3a3da5d --- /dev/null +++ b/nested-array.js @@ -0,0 +1,10 @@ +var paneggilNestedArray = () => { + var dataNama = [["AB","AC","AD"], + ["Bola","Bola2","Bola3"], + ["Rem1","Rem2","Rem3"]] + + console.log(dataNama.length) + console.log(dataNama[0][2]) +} + +paneggilNestedArray() From ab0a15bb3a58be1cdb0f2282914661a946ca142c Mon Sep 17 00:00:00 2001 From: bagusjunaediardianto <33486751+bagusjunaediardianto@users.noreply.github.com> Date: Fri, 3 Aug 2018 03:27:23 +0700 Subject: [PATCH 07/16] Update nested-array.js --- nested-array.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nested-array.js b/nested-array.js index c3a3da5d..02fd6ae8 100644 --- a/nested-array.js +++ b/nested-array.js @@ -4,7 +4,10 @@ var paneggilNestedArray = () => { ["Rem1","Rem2","Rem3"]] console.log(dataNama.length) + console.log(dataNama[0][1]) console.log(dataNama[0][2]) + console.log(dataNama[1][2]) + console.log(dataNama[2][2]) } paneggilNestedArray() From a0c6c68ecda3550078649d656546207b2e16a3ac Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 03:28:43 +0700 Subject: [PATCH 08/16] Modify nested-array.js --- nested-array.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/nested-array.js b/nested-array.js index 02fd6ae8..c3a3da5d 100644 --- a/nested-array.js +++ b/nested-array.js @@ -4,10 +4,7 @@ var paneggilNestedArray = () => { ["Rem1","Rem2","Rem3"]] console.log(dataNama.length) - console.log(dataNama[0][1]) console.log(dataNama[0][2]) - console.log(dataNama[1][2]) - console.log(dataNama[2][2]) } paneggilNestedArray() From 59afd0a6aa1d2a7142264cc11ef7d4ca8325ae19 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 03:57:00 +0700 Subject: [PATCH 09/16] menambahkan file object.js --- object.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 object.js diff --git a/object.js b/object.js new file mode 100644 index 00000000..440019c4 --- /dev/null +++ b/object.js @@ -0,0 +1,11 @@ +function panggilObject(){ + var mobil = { + type : 'Sedan', + harga: '200juta', + warna: 'Putih', + } + console.log(mobil) + console.log(mobil.warna) +} + +panggilObject() From e64c5f9e0c6c37f4b3da95a02c0f0897f18717bf Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 03:58:56 +0700 Subject: [PATCH 10/16] modify object.js --- object.js | 1 + 1 file changed, 1 insertion(+) diff --git a/object.js b/object.js index 440019c4..16b331cd 100644 --- a/object.js +++ b/object.js @@ -6,6 +6,7 @@ function panggilObject(){ } console.log(mobil) console.log(mobil.warna) + console.log(mobil.type) } panggilObject() From 328ec2b49b1cba082cb1a4bc34050d08f08da21a Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 04:01:48 +0700 Subject: [PATCH 11/16] modify obejct.js --- object.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 object.js diff --git a/object.js b/object.js new file mode 100644 index 00000000..e6cbdbf5 --- /dev/null +++ b/object.js @@ -0,0 +1,13 @@ +function panggilObject(){ + var mobil = { + type : 'Sedan', + harga: '200juta', + warna: 'Putih', + } + console.log(mobil) + console.log(mobil.warna) + console.log(mobil.type) + console.log(mobil.harga) +} + +panggilObject() From c251f6722579af9ab9b88636593de2b8623c3814 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Fri, 3 Aug 2018 04:12:52 +0700 Subject: [PATCH 12/16] modify obejct.js --- object.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/object.js b/object.js index e6cbdbf5..a11d99ea 100644 --- a/object.js +++ b/object.js @@ -1,13 +1,17 @@ -function panggilObject(){ - var mobil = { - type : 'Sedan', - harga: '200juta', - warna: 'Putih', +var panggilObject = () => { + var motor = { + merk : ["Honda","Yamaha","Suzuki"], + cc : ["125cc","150cc","250cc"], + harga : ["15jt","20jt","25jt"], + warna : ["hitam","putih","biru"], } - console.log(mobil) - console.log(mobil.warna) - console.log(mobil.type) - console.log(mobil.harga) + console.log(motor.merk[0],"?") + console.log(motor.cc[2],"?") + console.log(motor.harga[2],"?") + console.log(motor.warna[1],"?") + console.log("Motor Apakah itu ?") + + if (motor.merk[0] && motor.cc[2] && motor.harga[2] && motor.warna[1]) console.log("Honda CBR 250CC") } panggilObject() From 56bdd28546535a5c10ea1e7dda826fb0be3b865e Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Mon, 13 Aug 2018 06:07:54 +0700 Subject: [PATCH 13/16] add tugas/index.html & tugas/style.css --- tugas/index.html | 52 +++++++++++++++++++++ tugas/style.css | 116 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+) create mode 100644 tugas/index.html create mode 100644 tugas/style.css diff --git a/tugas/index.html b/tugas/index.html new file mode 100644 index 00000000..db25c8c1 --- /dev/null +++ b/tugas/index.html @@ -0,0 +1,52 @@ + + + HOME + + + +
+ +
+ + +
+ +
+ +
+ +
+ + diff --git a/tugas/style.css b/tugas/style.css new file mode 100644 index 00000000..1160b542 --- /dev/null +++ b/tugas/style.css @@ -0,0 +1,116 @@ +body { + background: white; +} + +.container { + background:black; + background-position:center ; + height: 100%; + width:100%; + position:absolute; + right:-1; + left:-1; + opacity: 3; +} + +.header { + background-color:black; + background-position: center; + height:10%; + width:100%; + position: relative; + display: inline-flex; +} + +.logo{ + background-position:left; + height:100%; + width:10%; + position:relative; +} + +.gambarlogo{ + background-position: center; + height: 100%; + width: 100%; + position: relative; + left:10%; + opacity:7; +} + +.menu { + color: darkgrey; + background-position: center; + height:100%; + width:40%; + position: relative; + display:flex; + letter-spacing: 2px; + float:right; +} + +.setTable{ + border: 2px solid black; + height: 100%; + position: relative; + left: 5%; +} + +.setTable{ + border-spacing:15px; +} +.setRow{ + background-position: center; + padding-left: 17px; + border: 2px solid white; + width: 20%; + position: relative; + left:0%; +} + +.setPosition{ + position: relative; + bottom: 7%; + left:10%; +} + +.textSearch{ + background: black; + color: darkgrey; + border:0.1px solid black; + opacity: 2; +} + +.textButton{ + background: black; + color: darkgrey; + border : 0.1px solid black; + opacity: 2; +} + +.setSize{ + height:70%; +} + +h1{ + color: darkgrey; + font-size: 20px; + font-weight: bold; + font-family:sans-serif; + text-align: center; +} + +.body{ + background-color: grey; + background-position: center; + height:80%; + width:100%; + position: relative; +} +.footer { + background-color: darkgrey; + background-position: center; + height:10%; + width:100%; + position:relative; +} From bd73f9fc2e54df248d2bffeb0fbe20b8543e12e3 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Mon, 13 Aug 2018 06:09:14 +0700 Subject: [PATCH 14/16] add tugas/index.html & tugas/style.css --- tugas/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tugas/style.css b/tugas/style.css index 1160b542..f7952c69 100644 --- a/tugas/style.css +++ b/tugas/style.css @@ -62,7 +62,7 @@ body { .setRow{ background-position: center; padding-left: 17px; - border: 2px solid white; + border: 2px solid black; width: 20%; position: relative; left:0%; From a1089a6bcce7a56feab3000954904ae50ae929f2 Mon Sep 17 00:00:00 2001 From: Bagus ardianto Date: Tue, 14 Aug 2018 04:43:01 +0700 Subject: [PATCH 15/16] update index.html dan style.css --- tugas/index.html | 11 ++++++++--- tugas/style.css | 46 +++++++++++++++++++++++++++++++++++----------- 2 files changed, 43 insertions(+), 14 deletions(-) diff --git a/tugas/index.html b/tugas/index.html index db25c8c1..728161be 100644 --- a/tugas/index.html +++ b/tugas/index.html @@ -30,10 +30,10 @@ - + - - + + @@ -42,7 +42,12 @@
+
+
+
+ +