Skip to content

Instantly share code, notes, and snippets.

View desawarna's full-sized avatar

Zae makhrus desawarna

View GitHub Profile
import React, { Component } from 'react';
//import logo from './logo.svg';
//import './App.css';
import Todo from './Component/Todo';
class App extends Component {
constructor() {
super();
@desawarna
desawarna / CSS3 Media Queries Template
Created July 29, 2018 00:55
CSS3 Media Queries template
/*
* 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 */
}
<!DOCTYPE HTML>
<html>
<head>
<title>Operator Aritmatika</title>
</head>
<body onload="kata()">
<script>
//Variabel
var A = 10, B = 4;
<!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>
<!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>")
//Belajar Objek JS
Var HelloKity = {
nama : "Hello Kity",
sifat : "Manja",
warna : [ "pink" , "putih" ] ,
makanan : [ "wiskas" , "ikan" , "biskuit" ]
}