This file contains hidden or 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
import React, { Component } from 'react'; | |
//import logo from './logo.svg'; | |
//import './App.css'; | |
import Todo from './Component/Todo'; | |
class App extends Component { | |
constructor() { | |
super(); |
This file contains hidden or 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
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Operator Aritmatika</title> | |
</head> | |
<body onload="kata()"> | |
<script> | |
//Variabel | |
var A = 10, B = 4; | |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Inline</title> | |
</head> | |
<body onload="alert('Selamat Datang!')"> | |
<button onclick="alert('Anda menekan tombol')">Klik di sini</button> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Konstanta dan Variabel</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// dengan 2 variabel | |
var vstr ="Assalamualaikum" , name="Saudaraku" | |
document.write("<h1>Variabel</h1><hr>") |
This file contains hidden or 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
//Belajar Objek JS | |
Var HelloKity = { | |
nama : "Hello Kity", | |
sifat : "Manja", | |
warna : [ "pink" , "putih" ] , | |
makanan : [ "wiskas" , "ikan" , "biskuit" ] | |
} |
NewerOlder