This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML | |
<div class="col-md-12"> | |
<div class="form-group" wire:ignore> | |
<label for="desciption">Deskripsi</label> | |
<textarea type="text" input="description" id="summernote" class="form-control summernote">{{ $description }}</textarea> | |
</div> | |
</div> | |
// JAVASCRIPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Object Create | |
const methodSaya = { | |
makan: function (porsi) { | |
this.energi += porsi; | |
}, | |
main: function (jam) { | |
this.energi -= jam; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Construct Function | |
function Saya(nama, energi) { | |
this.nama = nama; | |
this.energi = energi; | |
this.makan = function(porsi){ | |
this.energi += porsi; | |
}, | |
this.main = function(jam) { | |
this.energi -= jam; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<htmL> | |
<head> | |
<title>Belajar JavaScript</title> | |
<script> | |
function tambah_semangat(){ | |
var a = document.getElementById("div_semangat"); | |
a.innerHTML += "<p>Sedang Belajar Javascript, Semangat..!!!</p>"; | |
} | |
</script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<htmL> | |
<head> | |
<title>Belajar JavaScript</title> | |
</head> | |
<body> | |
<script> | |
window.alert("Ini merupakan pesan untuk anda"); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['nilai'])){ | |
function first($x) | |
{ | |
$a = pow($x,3) + 2*pow($x,2) + 10*$x - 20; | |
return $a; | |
} | |
function turunan_first($x){ |