Created
July 26, 2018 14:39
-
-
Save desawarna/aee2ed67f60d5b130d6cc95a9fb7a4ec 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> | |
<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>") | |
// menggabungkan dua string yang dalam tanda petik merupakan string | |
document.write(vstr+ " dan " +name ) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment