-
Notifications
You must be signed in to change notification settings - Fork 0
/
step1.html
51 lines (38 loc) · 1.23 KB
/
step1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p>hay zein
</p>
<script>
//var,let,const adalah type data yang adaptif (any)
var dataString = "Minimal 1 huruf saja"; //string
var dataString = 1; //string
var dataInteger = 1; //int
var dataBoolean = true; //boolean
let dataLet = "let";
let dataLet = "let"; // tidak boleh diredecler
var dataVar = "var";
var dataVar = "var"; //boleh di rediclare
const dataFinal = "data ini tidak akan bisa dirubah"
dataFinal = "test"; //error
var dataKosong;
dataKosong ="";
//let dataKosong;
//dataKosong = "";
//VARiable = rubah kapan pun
//let = ada beberapa kondisi tidak bisa dirubah/re-inisiasi
//const = final atau tidak akan bisa dirubah
var 123data = "data"; //error
var _123data = "data"; //tidak error
var _data = "data"; //tidak error
var data = "data"; //tidak error
var dataBaruLagi = "data"; //tidak error //camelCase
var data_baru_lagi = "data"; //tidak error
console.log("Hay zein")
</script>
</body>
</html>
<!-- Html, Php, js -->