Created
September 2, 2020 03:13
-
-
Save firdaushqq/a3454fd2197ff0b376d779fff3319285 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Firdaus Haqiqi XI RPL 3</title> | |
</head> | |
<body> | |
<h1>Javascript Variables dengan Tipe Data</h1> | |
<p>Deklarasi Strings harus disertai tanda kutip</p> | |
<p>Deklarasi Angka tidak perlu disertai kutip</p> | |
<p>Cobalah dengan tanda komentar //</p> | |
<p id="demo"></p> | |
<script> | |
var pi = 3.14; | |
var person = "John Doe"; | |
var answer = 'Yes I am!'; | |
//document.getElementById("demo").innerHTML = pi; | |
document.getElementById("demo").innerHTML = person; | |
//document.getElementById("demo").innerHTML = answer; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment